Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions plugin/pxr/maya/lib/usdMaya/referenceAssembly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,16 @@ bool UsdMayaReferenceAssembly::activateRep(const MString& repMStr)
return true;
}

bool UsdMayaReferenceAssembly::activate(const MString& repMStr)
{
// Early out if repMStr is already the active representation.
if (getActive() == repMStr) {
return true;
}

return MPxAssembly::activate(repMStr);
}

//
// == Optional Function Overrides
//
Expand Down
2 changes: 2 additions & 0 deletions plugin/pxr/maya/lib/usdMaya/referenceAssembly.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ class UsdMayaReferenceAssembly
MStatus setRepLabel(const MString& representation, const MString& label) override;
PXRUSDMAYA_API
bool activateRep(const MString& representation) override;
PXRUSDMAYA_API
bool activate(const MString& representation) override;

// Optional overrides
PXRUSDMAYA_API
Expand Down