diff --git a/lib/mayaUsd/utils/util.cpp b/lib/mayaUsd/utils/util.cpp index 913c09c8a0..901e785d64 100644 --- a/lib/mayaUsd/utils/util.cpp +++ b/lib/mayaUsd/utils/util.cpp @@ -619,6 +619,19 @@ bool UsdMayaUtil::isRenderable(const MObject& object) } } + MDagPath dagPath; + stat = mFn.getPath(dagPath); + CHECK_MSTATUS_AND_RETURN(stat, false); + if (!dagPath.isVisible()) { + return false; + } + + const MDAGDrawOverrideInfo drawOverrideInfo = dagPath.getDrawOverrideInfo(); + if (drawOverrideInfo.fOverrideEnabled + && drawOverrideInfo.fDisplayType == MDAGDrawOverrideInfo::kDisplayTypeTemplate) { + return false; + } + // this shape is renderable return true; }