Skip to content

Better tracking of instancer prims that get retyped via PrimsAdded#4042

Open
robp-sidefx wants to merge 1 commit intoPixarAnimationStudios:devfrom
sideeffects:4040-instancerPrimChange
Open

Better tracking of instancer prims that get retyped via PrimsAdded#4042
robp-sidefx wants to merge 1 commit intoPixarAnimationStudios:devfrom
sideeffects:4040-instancerPrimChange

Conversation

@robp-sidefx
Copy link
Copy Markdown
Contributor

Description of Change(s)

Previously, new entries (in PrimsAdded) were filtered to identify instancers, and those paths were added to a local cache. But this didn't capture the event where an existing instancer was retyped. This change also captures the non-instancers from the new entries, and uses that list to remove entries that might be in the cache from an earlier representation of the scene.

I expect this new code path will get hit a lot (i.e., the vast majority of PrimsAdded prims will not be instancers), so I am mildly nervous about potential performance implications, but I can't immediately come up with a lighter-weight alternative. I can verify that the change resolves the reported issue, but you may have a more elegant solution instead.

Link to proposal (if applicable)

Fixes Issue(s)

#4040

Checklist

…r prims, retyped via PrimsAdded, are removed from _instancersAndOvers
@jesschimein
Copy link
Copy Markdown
Collaborator

Filed as internal issue #USD-12098

(This is an automated message. See here for more information.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants