Skip to content

Commit

Permalink
MAYA-107386 As a user, on the stage AE template I'd like to connect t…
Browse files Browse the repository at this point in the history
…o time

MAYA-107350 As a user, on the stage AE template I'd like to see what my default prim is
MAYA-107338 As a user, on the stage AE template I'd like to see what my Root Layer is
MAYA-107273 As a user, on the stage AE template I'd like to toggle Purpose=Default

* Bullet-proof some code that can have null path.
  • Loading branch information
seando-adsk committed Nov 27, 2020
1 parent 515cca5 commit fd9a6e8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/mayaUsd/ufe/StagesSubject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,13 @@ void StagesSubject::onStageInvalidate(const MayaUsdProxyStageInvalidateNotice& n
afterOpen();

#ifdef UFE_V2_FEATURES_AVAILABLE
Ufe::SceneItem::Ptr sceneItem = Ufe::Hierarchy::createItem(notice.GetProxyShape().ufePath());
Ufe::Scene::instance().notify(Ufe::SubtreeInvalidate(sceneItem));
auto p = notice.GetProxyShape().ufePath();
if (!p.empty()) {
Ufe::SceneItem::Ptr sceneItem = Ufe::Hierarchy::createItem(p);
if (sceneItem) {
Ufe::Scene::instance().notify(Ufe::SubtreeInvalidate(sceneItem));
}
}
#endif
}

Expand Down

0 comments on commit fd9a6e8

Please sign in to comment.