Browse Source

[scene] Fix Ctrl-Shift-D breaking inputs

Clément Espeute 6 months ago
parent
commit
0815f49135
1 changed files with 6 additions and 3 deletions
  1. 6 3
      hide/comp/SceneEditor.hx

+ 6 - 3
hide/comp/SceneEditor.hx

@@ -4146,9 +4146,12 @@ class SceneEditor {
 			selectElements(newElements, NoHistory);
 			tree.setSelection(newElements);
 			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;