-
Notifications
You must be signed in to change notification settings - Fork 214
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The current Maya scene file is deleted from disk after cancelling the USD files save during Incremental Save.
Steps to reproduce
- Open an existing Maya scene that contains a proxyShape created from an existing USD file.
- Verify the scene file exists on disk:
fileLocation = maya.cmds.file(q=True, location=True) print(f"# File exists: {maya.cmds.file(fileLocation, q=True, exists=True)}") # File exists: True
- Modify a file-backed USD layer (e.g., the root layer) so the stage becomes dirty.
- Ensure the save dialogs will appear:
maya.cmds.optionVar(iv=("mayaUsd_SerializedUsdEditsLocationPrompt", 1)) maya.cmds.optionVar(iv=("mayaUsd_ConfirmExistingFileSave", 1))
- Trigger an incremental save via File > Increment and Save, or File > Save Scene with Incremental Save enabled.
- In Save USD Options, choose Save the Maya scene file and USD files and click Save.
- When the confirmation dialog appears, click Cancel.
- Verify the scene file again, it has been removed:
fileLocation = maya.cmds.file(q=True, location=True) print(f"# File exists: {maya.cmds.file(fileLocation, q=True, exists=True)}") # File exists: False
Expected behavior
Clicking Cancel should abort the save and leave the original Maya scene file intact.
Environment
- Rocky Linux 8.10
- Maya 2026.2
- Maya USD dev @ 386b4fd
- Pixar USD v24.11
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working