summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Qt3DStudio/Palettes/Inspector/InspectorControlModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Authoring/Qt3DStudio/Palettes/Inspector/InspectorControlModel.cpp')
-rw-r--r--src/Authoring/Qt3DStudio/Palettes/Inspector/InspectorControlModel.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/Authoring/Qt3DStudio/Palettes/Inspector/InspectorControlModel.cpp b/src/Authoring/Qt3DStudio/Palettes/Inspector/InspectorControlModel.cpp
index f3c5fd60..b23a1f0f 100644
--- a/src/Authoring/Qt3DStudio/Palettes/Inspector/InspectorControlModel.cpp
+++ b/src/Authoring/Qt3DStudio/Palettes/Inspector/InspectorControlModel.cpp
@@ -231,17 +231,7 @@ bool InspectorControlModel::isBasicMaterial(CInspectableBase *inspectable) const
if (!inspectable)
return false;
- if (inspectable->getObjectType() == OBJTYPE_REFERENCEDMATERIAL) {
- const auto instance = inspectable->getInstance();
- if (!instance.Valid())
- return false;
-
- const auto refMaterial = getBridge()->getMaterialReference(instance);
- if (refMaterial.Valid() && getBridge()->isInsideMaterialContainer(refMaterial))
- return true;
- }
-
- return false;
+ return getBridge()->isBasicMaterial(inspectable->getInstance());
}
bool InspectorControlModel::isMaterial() const