2
0
Эх сурвалжийг харах

need to filter subscenes out of screenspace box drag
the ap hangs otherwise

AzaezelX 7 сар өмнө
parent
commit
11bf7df46d

+ 1 - 1
Engine/source/gui/worldEditor/worldEditor.cpp

@@ -2464,7 +2464,7 @@ static void findDragMeshCallback( SceneObject *obj, void *data )
    if ( dragData->mWorldEditor->objClassIgnored( obj ) ||
    if ( dragData->mWorldEditor->objClassIgnored( obj ) ||
         !obj->isSelectionEnabled() ||
         !obj->isSelectionEnabled() ||
         obj->getTypeMask() & ( TerrainObjectType | ProjectileObjectType ) ||
         obj->getTypeMask() & ( TerrainObjectType | ProjectileObjectType ) ||
-        dynamic_cast< GroundPlane* >( obj ) ||
+        dynamic_cast< GroundPlane* >( obj ) || dynamic_cast<SubScene*>(obj) ||
         Prefab::getPrefabByChild( obj ) )
         Prefab::getPrefabByChild( obj ) )
    {
    {
       return;
       return;