Skip to content

Commit

Permalink
Address feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamed Sabri committed Oct 27, 2020
1 parent 0977cf1 commit 520b36d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions lib/mayaUsd/ufe/ProxyShapeHierarchy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,7 @@ Ufe::UndoableCommand::Ptr ProxyShapeHierarchy::reorderCmd(const Ufe::SceneItemLi
}

// create a reorder command and pass in the parent and its ordered children list
const auto& childPrim = downcast((*orderedList.begin()))->prim();
const auto& parentPrim = childPrim.GetParent();

return UsdUndoReorderCommand::create(parentPrim, orderedTokens);
return UsdUndoReorderCommand::create(getUsdRootPrim(), orderedTokens);
}
#endif

Expand Down
5 changes: 1 addition & 4 deletions lib/mayaUsd/ufe/UsdHierarchy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,7 @@ Ufe::UndoableCommand::Ptr UsdHierarchy::reorderCmd(const Ufe::SceneItemList& ord
}

// create a reorder command and pass in the parent and its reordered children list
const auto& childPrim = downcast((*orderedList.begin()))->prim();
const auto& parentPrim = childPrim.GetParent();

return UsdUndoReorderCommand::create(parentPrim, orderedTokens);
return UsdUndoReorderCommand::create(downcast(sceneItem())->prim(), orderedTokens);
}
#endif

Expand Down

0 comments on commit 520b36d

Please sign in to comment.