-
Notifications
You must be signed in to change notification settings - Fork 202
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-104544 Handle changing the USD stage #474
MAYA-104544 Handle changing the USD stage #474
Conversation
…ete everything and clear the subscene container.
The changes I've done aren't perfect. In some cases when I load a new usd stage some of the old stage keeps on drawing in the viewport. Looking at the documentation for MPxSubSceneOverride it seems like clearing the MSubSceneContainer should be enough to prevent anything from the old stage from drawing, so I'm guessing there is still a bug in Maya which is causing that problem. I'll wait until @HdC-adsk makes some progress on the drawing issues he's looking at before tackling this additional issue, in case they are duplicates. |
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 to me! Thanks!
The cached usdStage in the proxyRenderDelegate can change. If that happens delete everything cached in the ProxyRenderDelegate and clear the subscene container so VP2 draws correctly.