Skip to content

Commit

Permalink
MAYA-127483 - Correct attribute base name
Browse files Browse the repository at this point in the history
  • Loading branch information
alicedegirolamo committed Feb 10, 2023
1 parent 373c3db commit a27a9bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mayaUsd/ufe/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,8 @@ bool canRemoveDstProperty(const PXR_NS::UsdAttribute& dstAttr)

UsdShadeMaterial asMaterial(prim);
if (asMaterial) {
const TfToken baseName = dstAttr.GetBaseName();
const auto baseNameAndType = PXR_NS::UsdShadeUtils::GetBaseNameAndType(dstAttr.GetName());
const TfToken baseName = baseNameAndType.first;
// Remove Material intrinsic outputs since they are re-created automatically.
if (baseName == UsdShadeTokens->surface || baseName == UsdShadeTokens->volume
|| baseName == UsdShadeTokens->displacement) {
Expand Down

0 comments on commit a27a9bc

Please sign in to comment.