From 526d4ea31a3bde413ca43acfa2576ab07a4fae69 Mon Sep 17 00:00:00 2001 From: Areloch Date: Wed, 18 Oct 2017 00:35:37 -0500 Subject: [PATCH] Remove unneeded isParent handling for entities in the GuiTreeViewCtrl --- Engine/source/gui/controls/guiTreeViewCtrl.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Engine/source/gui/controls/guiTreeViewCtrl.cpp b/Engine/source/gui/controls/guiTreeViewCtrl.cpp index 9835c9858..ca499a758 100644 --- a/Engine/source/gui/controls/guiTreeViewCtrl.cpp +++ b/Engine/source/gui/controls/guiTreeViewCtrl.cpp @@ -645,18 +645,6 @@ void GuiTreeViewCtrl::Item::getTooltipText(U32 bufLen, char *buf) bool GuiTreeViewCtrl::Item::isParent() const { - //We might have a special case with entities - //So if our entity either has children, or has some component with the EditorInspect interface, we return true - if (mInspectorInfo.mObject) - { - Entity* e = dynamic_cast(mInspectorInfo.mObject.getObject()); - if (e) - { - if (e->size() > 0 || e->getComponentCount() != 0) - return true; - } - } - if(mState.test(VirtualParent)) { if( !isInspectorData() )