瀏覽代碼

[scene] Fix Ctrl-Shift-D breaking inputs

Clément Espeute 6 月之前
父節點
當前提交
0815f49135
共有 1 個文件被更改,包括 6 次插入3 次删除
  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;