-
Notifications
You must be signed in to change notification settings - Fork 203
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
MAYA-125036 correctly identify orphaned edited prims #2803
Conversation
- Provide a function to explicitly determine if an edited prim is orphaned. - Provide the function in Python too. - Use it both to build the context menu and do the outliner item rendering.
@@ -117,6 +117,11 @@ std::string readPullInformationString(const PXR_NS::UsdPrim& prim) | |||
return dagPathStr; | |||
} | |||
|
|||
bool isEditedPrimOrphaned(const PXR_NS::UsdPrim& prim) | |||
{ | |||
return MAYAUSD_NS_DEF::isEditedAsMayaOrphaned(prim); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just use the namespace name "MayaUsd::"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was using the same as existing code above it. I will change both.
// pulled node and not some node that just happens to have the same | ||
// name. This can happen, for example, when two variants each contain | ||
// a child with the same name, one pulled, one not. | ||
if (MAYAUSD_NS_DEF::isEditedAsMayaOrphaned(usdItemPath)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MayaUsd::
@vlasovi Ivan can you please do a quick code review before I merge this. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Also fixes MAYA-126891