summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Application/StudioApp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Authoring/Studio/Application/StudioApp.cpp')
-rw-r--r--src/Authoring/Studio/Application/StudioApp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Authoring/Studio/Application/StudioApp.cpp b/src/Authoring/Studio/Application/StudioApp.cpp
index 888865f4..f0965d50 100644
--- a/src/Authoring/Studio/Application/StudioApp.cpp
+++ b/src/Authoring/Studio/Application/StudioApp.cpp
@@ -1421,7 +1421,7 @@ CInspectableBase *CStudioApp::getInspectableFromInstance(qt3dsdm::Qt3DSDMInstanc
CInspectableBase *inspectableBase = nullptr;
CDoc *doc = m_core->GetDoc();
- if (m_core->GetDoc()->GetDocumentReader().IsInstance(inInstance)) {
+ if (doc->GetDocumentReader().IsInstance(inInstance)) {
CClientDataModelBridge *theBridge = doc->GetStudioSystem()->GetClientDataModelBridge();
qt3dsdm::Qt3DSDMSlideHandle activeSlide = doc->GetActiveSlide();
@@ -1432,7 +1432,7 @@ CInspectableBase *CStudioApp::getInspectableFromInstance(qt3dsdm::Qt3DSDMInstanc
inspectableBase = new Qt3DSDMInspectable(inInstance, activeSlideInstance);
}
- if (inspectableBase) {
+ if (!inspectableBase) {
if (theBridge->IsMaterialBaseInstance(inInstance))
inspectableBase = new Qt3DSDMMaterialInspectable(inInstance);
else