Skip to content

LayerManager: avoid side effects on exports that do not include proxyShapes.#4553

Merged
seando-adsk merged 1 commit intoAutodesk:devfrom
jufrantz:avoid_layermanager_side_effects_on_export_edits
Apr 8, 2026
Merged

LayerManager: avoid side effects on exports that do not include proxyShapes.#4553
seando-adsk merged 1 commit intoAutodesk:devfrom
jufrantz:avoid_layermanager_side_effects_on_export_edits

Conversation

@jufrantz
Copy link
Copy Markdown
Contributor

Before this change, prepareForExportCheck() always called prepareForWriteCheck(), regardless of the export mode.

As a result, export operations such as exporting reference edits to editMA files still ran the LayerManager write path even though no LayerManager data needed to be persisted. This could raise unnecessary maya-usd save dialogs and trigger unnecessary session layer serialization, which could later lead to avoidable stage recomposition when a proxyShape is recomputed.

… shapes

Before this change, prepareForExportCheck() always called
prepareForWriteCheck(), regardless of the export mode.

This caused export operations such as Export Edits to still run the
LayerManager write path. That could raise unnecessary save dialogs and
unnecessarily serialize anonymous session layers, so a later proxyShape
recompute could recreate them as different anonymous layers with
different identifiers and trigger stage recomposition.
Comment thread lib/mayaUsd/nodes/layerManager.cpp
@seando-adsk seando-adsk added the workflows Related to in-context workflows label Apr 2, 2026
@seando-adsk seando-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Apr 8, 2026
@seando-adsk seando-adsk merged commit 14e7ebc into Autodesk:dev Apr 8, 2026
11 checks passed
@jufrantz jufrantz deleted the avoid_layermanager_side_effects_on_export_edits branch April 13, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge Development process is finished, PR is ready for merge workflows Related to in-context workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants