Skip to content

Commit

Permalink
Fixed UFE v1 compilation issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
ppt-adsk committed Feb 10, 2020
1 parent f53f29c commit e508bdb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/ufe/UsdStageMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ UsdStageMap g_StageMap;
void UsdStageMap::addItem(const Ufe::Path& path, UsdStageWeakPtr stage)
{
// We expect a path to the proxy shape node, therefore a single segment.
auto nbSegments = path.nbSegments();
auto nbSegments =
#ifdef UFE_V2_FEATURES_AVAILABLE
path.nbSegments();
#else
path.getSegments().size();
#endif
if (nbSegments != 1) {
TF_CODING_ERROR("A proxy shape node path can have only one segment, path '%s' has %d", path.string().c_str(), nbSegments);
return;
Expand Down

0 comments on commit e508bdb

Please sign in to comment.