Skip to content

Commit

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

UsdShadeMaterial asMaterial(prim);
if (asMaterial) {
const auto baseNameAndType = PXR_NS::UsdShadeUtils::GetBaseNameAndType(dstAttr.GetName());
const TfToken baseName = baseNameAndType.first;
const TfToken baseName = dstAttr.GetBaseName();
// 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 d8dd340

Please sign in to comment.