File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
plugin/pxr/maya/lib/usdMaya Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -375,6 +375,16 @@ bool UsdMayaReferenceAssembly::activateRep(const MString& repMStr)
375375 return true ;
376376}
377377
378+ bool UsdMayaReferenceAssembly::activate (const MString& repMStr)
379+ {
380+ // Early out if repMStr is already the active representation.
381+ if (getActive () == repMStr) {
382+ return true ;
383+ }
384+
385+ return MPxAssembly::activate (repMStr);
386+ }
387+
378388//
379389// == Optional Function Overrides
380390//
Original file line number Diff line number Diff line change @@ -151,6 +151,8 @@ class UsdMayaReferenceAssembly
151151 MStatus setRepLabel (const MString& representation, const MString& label) override ;
152152 PXRUSDMAYA_API
153153 bool activateRep (const MString& representation) override ;
154+ PXRUSDMAYA_API
155+ bool activate (const MString& representation) override ;
154156
155157 // Optional overrides
156158 PXRUSDMAYA_API
You can’t perform that action at this time.
0 commit comments