Przeglądaj źródła

Don't clear scene object selection when handle is released

BearishSun 9 lat temu
rodzic
commit
7b7b8ab0d9

+ 2 - 1
Source/MBansheeEditor/Windows/Scene/SceneWindow.cs

@@ -487,6 +487,8 @@ namespace BansheeEditor
             sceneGizmos.Draw();
             sceneGrid.Draw();
 
+            bool handleActive = sceneHandles.IsActive() || sceneAxesGUI.IsActive();
+
             Vector2I scenePos;
             bool inBounds = ScreenToScenePos(Input.PointerPosition, out scenePos);
             bool dragResult = false;
@@ -616,7 +618,6 @@ namespace BansheeEditor
 
                 if (inBounds && HasContentFocus)
                 {
-                    bool handleActive = sceneHandles.IsActive();
                     if (Input.IsPointerButtonDown(PointerButton.Left))
                     {
                         Rect2I sceneAxesGUIBounds = new Rect2I(Width - HandleAxesGUISize - HandleAxesGUIPaddingX,