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-123332 allow topological modifications #2363

Merged
merged 3 commits into from
May 19, 2022

Conversation

pierrebai-adsk
Copy link
Collaborator

When locking nodes, it also locks topological modifications. Explicitly re-enable it afterward.

When locking nodes, it also locks topological modifications. Explicitly re-enable it afterward.
MDGModifier& dgMod = MDGModifierUndoItem::create("Allow topology modifications");

MItDag dagIt;
dagIt.reset(root, MItDag::kDepthFirst, MFn::kMesh);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems like a shame that LockNodesUndoItem does a traversal, then we do another traversal here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I agree, but I did not see an elegant way out, especially since here we only need meshes.

lib/mayaUsd/fileio/primUpdaterManager.cpp Outdated Show resolved Hide resolved
@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label May 19, 2022
@seando-adsk seando-adsk added the core Related to core library label May 19, 2022
@seando-adsk seando-adsk merged commit 78739ff into dev May 19, 2022
@pierrebai-adsk pierrebai-adsk deleted the t_bailp/MAYA-123332/mesh-topo-modif branch June 8, 2022 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to core library ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants