From fd9a6e8bebc925f23707564255f02bbb4f5071bb Mon Sep 17 00:00:00 2001 From: Sean Donnelly <23455376+seando-adsk@users.noreply.github.com> Date: Fri, 27 Nov 2020 11:28:16 -0500 Subject: [PATCH] MAYA-107386 As a user, on the stage AE template I'd like to connect to 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. --- lib/mayaUsd/ufe/StagesSubject.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/mayaUsd/ufe/StagesSubject.cpp b/lib/mayaUsd/ufe/StagesSubject.cpp index ffc21a46d3..bcb65b324b 100644 --- a/lib/mayaUsd/ufe/StagesSubject.cpp +++ b/lib/mayaUsd/ufe/StagesSubject.cpp @@ -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 }