-
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
refactoring_sandbox : Proxy shape local Prim changes remain even after delete/recreate or new scene #83
Comments
I can confirm this issue also happens in the latest state of the However I can't seem to find that similar functionality for the |
Just checking back in. Is there currently any way to force/set the Stage cache Id for the Also, with it currently being able to break like this, could this behavior turn out dangerous? For example, if you have a scene that has stage id 1 and 2. Then you open another file that was saved with two USD proxies with stage ids 2 and 3. What happens with the changes of stage id 2? Does it preserve them and try to apply them in the other scene? |
Indeed we have two different stage caches at this point. AL plugin is wrapping around UsdUtilsStageCache (https://github.com/PixarAnimationStudios/USD/blob/master/pxr/usd/lib/usdUtils/stageCache.h) and the base proxy has its own stage cache. Something to unify. I do not have an answer to your question, maybe @mattyjams can chime in? |
At the USD level, if you have layers being held open by stage caches across Maya scene changes (File->Open, File->New, etc.), then that would probably explain it. You could check this in Maya by making some edits, then doing a File->New and checking whether there are still layers loaded in the layer registry:
If that returns any layers after switching to a new scene, then there is probably a stage cache not getting reset and holding those layers open. Re-opening one of those layers is going to return you the version in the stage cache. We should hopefully be accounting for this in the pxr nodes and the maya-usd/lib/utils/stageCache.cpp Line 52 in 5d5e2b7
|
…Autodesk#83) * MAYA-99646 Fix selection highlight issues * Selection highlight for proxy selection from Outliner. * Selection highlight for Xform prims from Outliner. * Selection highlight for USD instancing objects. * MAYA-99646 capitalize function name * MAYA-99646 Differentiate the processing for "wasProxySelected" and "isProxySelected" case.
The issue has been fixed for a while - closing this ticket. @BigRoy please reopen if we missed something. |
Issue
If you create a USD Proxy shape and move Prims around using UFE these changes will persist as if stored globally. Deleting the proxy and loading the same USD scene will directly show the same changes. Even New Scene will have the local USD changes you did persist. Even if you unload the plug-in and reload the plug-in the change persists.
Only restarting Maya seems to resolve it.
Note that I'm create the proxy shapes with:
To reproduce
Note how the changes done in Step 2 also still exist in the new shape with Step 4.
Specs
d0bb624
)b85ddac2
)Mentioned in #51
The text was updated successfully, but these errors were encountered: