Просмотр исходного кода

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

BearishSun 10 лет назад
Родитель
Сommit
4880925653
1 измененных файлов с 4 добавлено и 0 удалено
  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;