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

Workaround for USD Issue 2013 #2569

Merged

Conversation

JGamache-autodesk
Copy link
Collaborator

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.

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.
@JGamache-autodesk
Copy link
Collaborator Author

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)
Copy link
Collaborator

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

vlasovi
vlasovi previously approved these changes Aug 29, 2022
Copy link
Collaborator

@hodoulp hodoulp left a 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 JGamache-autodesk added the ready-for-merge Development process is finished, PR is ready for merge label Aug 30, 2022
@seando-adsk seando-adsk added the ufe-usd Related to UFE-USD plugin in Maya-Usd label Aug 30, 2022
@seando-adsk
Copy link
Collaborator

@JGamache-autodesk Should be this be merged, or do you still hope to have a better solution?

@JGamache-autodesk
Copy link
Collaborator Author

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.

@seando-adsk seando-adsk merged commit 8cdee89 into dev Aug 31, 2022
@seando-adsk seando-adsk deleted the t_gamaj/UsdIssue2013/force_material_resync_on_connection branch August 31, 2022 14:18
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.

5 participants