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

MAYA-124820: When adding an Xform to a USD prim two entries are shown… #2565

Merged
merged 2 commits into from
Aug 30, 2022

Conversation

seando-adsk
Copy link
Collaborator

MAYA-124820: When adding an Xform to a USD prim two entries are shown in the channel box

  • Restore Attribute cache for USD attributes which don't change.

… in the channel box

* Restore Attribute cache for USD attributes which don't change.
@seando-adsk seando-adsk added the ufe-usd Related to UFE-USD plugin in Maya-Usd label Aug 24, 2022
Comment on lines +262 to +265
// If this is a Usd attribute (cannot change) then we cache it for future access.
if (!canRemoveAttribute(fItem, name)) {
fUsdAttributes[name] = newAttr;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Restored the USD attribute cache, but only for attributes which do not change.

ppt-adsk
ppt-adsk previously approved these changes Aug 25, 2022
… in the channel box

* Handle attribute cache differently depending on Ufe version.
@seando-adsk seando-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Aug 30, 2022
@seando-adsk seando-adsk merged commit 6a0fc30 into dev Aug 30, 2022
@seando-adsk seando-adsk deleted the donnels/MAYA-124820/restore_usd_attribute_cache branch August 30, 2022 18:03
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