Skip to content

Conversation

@pierrebai-adsk
Copy link
Collaborator

Handle the case where the target path was not yet defined in the session layer.

@pierrebai-adsk pierrebai-adsk added bug Something isn't working adsk Related to Autodesk plugin labels Aug 8, 2025
@pierrebai-adsk pierrebai-adsk self-assigned this Aug 8, 2025
Handle the case where the target path was not yet defined in the session layer.
Update the unit test to verify the original reported case.
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-2306/reparent-in-session branch from b0fb75e to 2d3a8bd Compare August 8, 2025 20:06
const auto targetLayer = isInSession ? layer : _dstLayer;

if (isInSession)
SdfJustCreatePrimInLayer(targetLayer, _usdDstPath);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this a duplicate code of the usdUfe ?
Should we remove it if it serves the same purpose?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't understand the meaning of the question. What duplicate code?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Both UsdUndoDuplicateCommand.cpp in mayaUsd/ufe and in usdUfe/ufe

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, right. They are very similar but not 100% identical. We would need to analyze the differences.

@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Aug 11, 2025
@seando-adsk seando-adsk added ufe-usd Related to UFE-USD plugin in Maya-Usd and removed bug Something isn't working adsk Related to Autodesk plugin labels Aug 12, 2025
@seando-adsk seando-adsk merged commit 5d9a76c into dev Aug 12, 2025
11 checks passed
@seando-adsk seando-adsk deleted the bailp/EMSUSD-2306/reparent-in-session branch August 12, 2025 12:12
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 ufe-usd Related to UFE-USD plugin in Maya-Usd

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants