summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Palettes/Inspector/Qt3DSDMInspectable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Authoring/Studio/Palettes/Inspector/Qt3DSDMInspectable.cpp')
-rw-r--r--src/Authoring/Studio/Palettes/Inspector/Qt3DSDMInspectable.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Authoring/Studio/Palettes/Inspector/Qt3DSDMInspectable.cpp b/src/Authoring/Studio/Palettes/Inspector/Qt3DSDMInspectable.cpp
index 866ed29e..a82df79c 100644
--- a/src/Authoring/Studio/Palettes/Inspector/Qt3DSDMInspectable.cpp
+++ b/src/Authoring/Studio/Palettes/Inspector/Qt3DSDMInspectable.cpp
@@ -188,6 +188,15 @@ EStudioObjectType Qt3DSDMInspectable::getObjectType() const
return getDoc()->GetStudioSystem()->GetClientDataModelBridge()->GetObjectType(m_instance);
}
+bool Qt3DSDMInspectable::isValid() const
+{
+ if (m_activeSlideInstance) {
+ return getDoc()->GetStudioSystem()->IsInstance(m_instance)
+ && getDoc()->GetStudioSystem()->IsInstance(m_activeSlideInstance);
+ }
+ return getDoc()->GetStudioSystem()->IsInstance(m_instance);
+}
+
bool Qt3DSDMInspectable::isMaster() const
{
ISlideSystem *slideSystem = getDoc()->GetStudioSystem()->GetSlideSystem();