mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
Remove unneeded isParent handling for entities in the GuiTreeViewCtrl
This commit is contained in:
parent
9359b72b93
commit
526d4ea31a
1 changed files with 0 additions and 12 deletions
|
|
@ -645,18 +645,6 @@ void GuiTreeViewCtrl::Item::getTooltipText(U32 bufLen, char *buf)
|
||||||
|
|
||||||
bool GuiTreeViewCtrl::Item::isParent() const
|
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<Entity*>(mInspectorInfo.mObject.getObject());
|
|
||||||
if (e)
|
|
||||||
{
|
|
||||||
if (e->size() > 0 || e->getComponentCount() != 0)
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(mState.test(VirtualParent))
|
if(mState.test(VirtualParent))
|
||||||
{
|
{
|
||||||
if( !isInspectorData() )
|
if( !isInspectorData() )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue