-
Notifications
You must be signed in to change notification settings - Fork 201
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
Workaround for USD Issue 2013 #2569
Workaround for USD Issue 2013 #2569
Conversation
See PixarAnimationStudios/OpenUSD#2013 I do hope to get a better workaround either in the issue comments or on this USD-interests thread: https://groups.google.com/g/usd-interest/c/5LZT-IOaOTU/m/XwLzFTq7AgAJ But, in the meantime, creating a dummy prim under the material is enough to cause the resync to happen... Feel free to revoke my coding license. This is ugly.
No hurry on reviewing/merging this. I do still have hope a better solution will be proposed. |
@@ -102,6 +102,20 @@ _GetShaderNodeDef(const PXR_NS::UsdPrim& prim, const PXR_NS::TfToken& attrName) | |||
return registry.GetShaderNodeByIdentifier(srcInfoId); | |||
} | |||
|
|||
void _SendIssue2013NotifWorkaround(const UsdPrim& usdPrim) |
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 would rename this function name into _SendStrongConnectionChangeNotification
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.
Seems to be an acceptable & safe hack.
@JGamache-autodesk Should be this be merged, or do you still hope to have a better solution? |
Yes, please merge. I will keep an eye on the USD fix and add include guards as soon as we have a version with the fix. |
See PixarAnimationStudios/OpenUSD#2013
I do hope to get a better workaround either in the issue comments or on
this USD-interests thread:
https://groups.google.com/g/usd-interest/c/5LZT-IOaOTU/m/XwLzFTq7AgAJ
But, in the meantime, creating a dummy prim under the material is enough to
cause the resync to happen... Feel free to revoke my coding license.
This is ugly.