Răsfoiți Sursa

Don't clear scene object selection when handle is released

BearishSun 9 ani în urmă
părinte
comite
7b7b8ab0d9
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      Source/MBansheeEditor/Windows/Scene/SceneWindow.cs

+ 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,