Skip to content

Maya Autosaved file no longer has USD dirty layers contents #4365

@csyshing

Description

@csyshing

Describe the bug

Hi,

We found that since v0.31.0 (PR-3982), Maya autosaved file no long has USD dirty layers content; Manually save the scene file looks good though (assuming #4364 is fixed).

When Maya autosave is running, MSceneMessage::kBeforeExportCheck is emitted but the LayerDatabase::prepareForExportCheck() callback no longer saving USD dirty layers.

Steps to reproduce
Steps to reproduce the behavior:

  1. Launch Maya and open any USD file
  2. Set edit target layer to be session layer
  3. Make some changes to dirty the session layer
  4. Manually click the 'Save' to save the scene file, set the option "Save all edits (including USD) to the Maya scene file"
  5. Shorten the Maya autosave time (or wait for the autosave timer timeout)
  6. Reopen the autosaved Maya scene file
  7. The session layer content would be gone

Expected behavior
Expect the autosave file to have USD dirty layers content, the same as a manual save scene file.

Specs (if applicable):

  • OS & version: Rocky Linux 9.4
  • Compiler & version : gcc-11.4
  • Maya version: Maya 2024.2
  • Maya USD : official v0.31.0 / v0.33.0
  • Pixar USD : official v24.03 / v25.08

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions