Skip to content

EMSUSD-3530 save proxy shape of component as component - #4690

Merged
antonkhelou merged 2 commits into
devfrom
bailp/EMSUSD-3530/multi-variants-maya-save
Aug 5, 2026
Merged

EMSUSD-3530 save proxy shape of component as component#4690
antonkhelou merged 2 commits into
devfrom
bailp/EMSUSD-3530/multi-variants-maya-save

Conversation

@pierrebai-adsk

@pierrebai-adsk pierrebai-adsk commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

EMSUSD-3530 - save proxy shape of component as component

Description

Bug fix:

  • Detect that a proxy shape is a component and ask the component creator to save it.

Added unit tests:

  • Added unit tests to verify that the Maya save command saves components with variants correctly and the data is correct when reloaded.
  • The test needs to reload the stage because the saving bug would manifest itself only when fully reloading the stage, like when opening the scene in a fresh Maya session.

@pierrebai-adsk pierrebai-adsk added the bug Something isn't working label Aug 4, 2026
@pierrebai-adsk pierrebai-adsk self-assigned this Aug 4, 2026
- Detect that a proxy shape is a component and ask the component creator
  to save it.

Added unit tests:
- Added unit tests to verify that the Maya save command saves components
  with variants correctly and the data is correct when reloaded.
- The test needs to reload the stage because the saving bug would
  manifest itself only when fully reloading the stage, like when opening
  the scene in a fresh Maya session.
@pierrebai-adsk pierrebai-adsk removed their assignment Aug 4, 2026
@pierrebai-adsk
pierrebai-adsk force-pushed the bailp/EMSUSD-3530/multi-variants-maya-save branch from 57498d9 to 5b77407 Compare August 4, 2026 19:43
@pierrebai-adsk pierrebai-adsk self-assigned this Aug 4, 2026
Comment thread test/lib/componentCreator/testComponentCreatorSave.py Outdated
Comment thread test/lib/componentCreator/testComponentCreatorBase.py Outdated
Comment thread test/lib/componentCreator/testComponentCreatorSave.py Outdated
Comment on lines +1151 to +1155
if (fn.isFromReferencedFile())
continue;

if (!LayerDatabase::instance().supportedNodeType(fn.typeId()))
continue;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you unbundle the condition for clarity?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the code changed a bit during dev and had more if, so I reduced the level of nested indent. I do prefer fewer indent and early exit, personally, so I left the change in.

Comment thread lib/mayaUsd/nodes/layerManager.cpp
@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Aug 5, 2026
@antonkhelou
antonkhelou merged commit 9956e0e into dev Aug 5, 2026
12 checks passed
@antonkhelou
antonkhelou deleted the bailp/EMSUSD-3530/multi-variants-maya-save branch August 5, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working 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.

2 participants