Browse Source

Bugfix: Auto-select objects dropped into the Hierarcy window

BearishSun 6 năm trước cách đây
mục cha
commit
8cd64e8f76
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Source/EditorCore/GUI/BsGUITreeView.cpp

+ 1 - 1
Source/EditorCore/GUI/BsGUITreeView.cpp

@@ -418,9 +418,9 @@ namespace bs
 						treeElement = element->parent;
 				}
 
+				unselectAll();
 				dragAndDropEnded(treeElement);
 				mDragInProgress = false;
-				unselectAll();
 
 				return true;
 			}