Prechádzať zdrojové kódy

[scene] Fix Ctrl-Shift-D breaking inputs

Clément Espeute 6 mesiacov pred
rodič
commit
0815f49135
1 zmenil súbory, kde vykonal 6 pridanie a 3 odobranie
  1. 6 3
      hide/comp/SceneEditor.hx

+ 6 - 3
hide/comp/SceneEditor.hx

@@ -4146,9 +4146,12 @@ class SceneEditor {
 			selectElements(newElements, NoHistory);
 			selectElements(newElements, NoHistory);
 			tree.setSelection(newElements);
 			tree.setSelection(newElements);
 			if(thenMove && selectedPrefabs.length > 0) {
 			if(thenMove && selectedPrefabs.length > 0) {
-				gizmo.startMove(MoveXY, true);
-				gizmo.onFinishMove = function() {
-					refreshProps();
+				if (!gizmo.moving) {
+					gizmo.startMove(MoveXY, true);
+					gizmo.onFinishMove = function() {
+						refreshProps();
+						setupGizmo();
+					}
 				}
 				}
 			}
 			}
 			isDuplicating = false;
 			isDuplicating = false;