Skip to content

Commit

Permalink
Merge pull request #2290 from Autodesk/boudrey/MAYA-121532/lockset
Browse files Browse the repository at this point in the history
MAYA-121532 push/pull: usdeditAsMaya set should be a locked node
  • Loading branch information
seando-adsk authored Apr 14, 2022
2 parents 6f3a92b + fb799a6 commit ffc4018
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/mayaUsd/fileio/primUpdaterManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,9 @@ PullImportPaths pullImport(
MStatus status = UsdMayaUtil::GetMObjectByName(kPullSetName, pullSetObj);
if (status != MStatus::kSuccess) {
MString createSetCmd;
createSetCmd.format("sets -em -name \"^1s\";", kPullSetName.asChar());
MDGModifier& dgMod = MDGModifierUndoItem::create("Pull import pull set creation");
createSetCmd.format("sets -em -name \"^1s\";lockNode \"^1s\";", kPullSetName.asChar());
MDGModifier& dgMod
= MDGModifierUndoItem::create("Pull import pull set creation and lock");
dgMod.commandToExecute(createSetCmd);
dgMod.doIt();
}
Expand Down

0 comments on commit ffc4018

Please sign in to comment.