Skip to content

Commit

Permalink
MAYA-126653 - mayaUsd.ufe.stagePath() returns incorrect value
Browse files Browse the repository at this point in the history
* Fix build error with Ufe v1.
  • Loading branch information
seando-adsk committed Jan 11, 2023
1 parent 5118c2d commit 81735fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/mayaUsd/ufe/wrapUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,14 @@ std::vector<PXR_NS::UsdStageRefPtr> getAllStages()

std::string stagePath(PXR_NS::UsdStageWeakPtr stage)
{
#ifdef UFE_V2_FEATURES_AVAILABLE
// Even though the Proxy shape node's UFE path is a single segment, we always
// need to return as a Ufe::PathString (to remove |world).
return Ufe::PathString::string(ufe::stagePath(stage));
#else
// Remove the leading '|world' component.
return ufe::stagePath(stage).popHead().string();
#endif
}

std::string usdPathToUfePathSegment(
Expand Down

0 comments on commit 81735fd

Please sign in to comment.