Browse Source

Selecting a scene object that was just created is now properly visible in the scene tree view

BearishSun 10 years ago
parent
commit
4880925653
1 changed files with 4 additions and 0 deletions
  1. 4 0
      BansheeEditor/Source/BsGUISceneTreeView.cpp

+ 4 - 0
BansheeEditor/Source/BsGUISceneTreeView.cpp

@@ -385,6 +385,10 @@ namespace BansheeEngine
 	{
 		unselectAll();
 
+		// Note: I could queue the selection update until after the next frame in order to avoid the hierarchy update here
+		// for better performance.
+		updateTreeElementHierarchy();
+
 		SceneTreeElement& root = mRootElement;
 
 		Stack<SceneTreeElement*> todo;