Skip to content

Commit

Permalink
Address feedback: Don't return if we have an internal reference since…
Browse files Browse the repository at this point in the history
… we do still want the opinion detection in other layers happens.
  • Loading branch information
Hamed Sabri committed May 12, 2020
1 parent 610f2ce commit 80aa35e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/mayaUsd/ufe/UsdUndoRenameCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ UsdUndoRenameCommand::UsdUndoRenameCommand(const UsdSceneItem::Ptr& srcItem, con
if (prim.HasAuthoredReferences()) {
auto primSpec = MayaUsdUtils::getPrimSpecAtEditTarget(_stage, prim);

if(MayaUsdUtils::isInternalReference(primSpec)) {
return;
}else {
if(!MayaUsdUtils::isInternalReference(primSpec)) {
std::string err = TfStringPrintf("Unable to rename referenced object [%s]",
prim.GetName().GetString().c_str());
throw std::runtime_error(err.c_str());
Expand Down

0 comments on commit 80aa35e

Please sign in to comment.