Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMSUSD-671 fix reloading scene with layers saved in the Maya scene #3518

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

pierrebai-adsk
Copy link
Collaborator

When reloading a scene that contained layers serialized directly in the scene, sub-layers would be lost because they were anonymous layers but on reload that status was lost and the sub-layer would be lost whenever the stage got recomputed.

Fix this by remembering that the sub-layer are anonymous on reload.

Add unit test to verify lost layer fix

  • Add comments to the layer manager serialization test and fix the layer being targeted.
  • Refactor common code in proxy shape saving tests.
  • Add more checks in the proxy shape saving test to verify that the contents are correct after reload and after recompute.

@pierrebai-adsk pierrebai-adsk added bug Something isn't working adsk Related to Autodesk plugin labels Dec 14, 2023
When reloading a scene that contained layers serialized directly in the scene,
sub-layers would be lost because they were anonymous layers but on reload that
status was lost and the sub-layer would be lost whenever the stage got recomputed.

Fix this by remembering that the sub-layer are anonymous on reload.

Add unit test to verify lost layer fix

- Add comments to the layer manager serialization test and fix the layer being targeted.
- Refactor common code in proxy shape saving tests.
- Add more checks in the proxy shape saving test to verify that the contents are correct afetr reload and after recompute.
@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Dec 20, 2023
@seando-adsk seando-adsk added core Related to core library and removed bug Something isn't working adsk Related to Autodesk plugin labels Dec 21, 2023
@seando-adsk seando-adsk merged commit 71d74e7 into dev Dec 21, 2023
11 checks passed
@seando-adsk seando-adsk deleted the bailp/EMSUSD-671/fix-lost-layers branch December 21, 2023 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to core library ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants