Browse Source

fix dropObjects not always using current engine, causing incorrect screen coordinate calculations

bcorbet 5 năm trước cách đây
mục cha
commit
25738b8a3c
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      hide/comp/SceneEditor.hx

+ 1 - 0
hide/comp/SceneEditor.hx

@@ -1399,6 +1399,7 @@ class SceneEditor {
 	}
 
 	public function dropObjects(paths: Array<String>, parent: PrefabElement) {
+		scene.setCurrent();
 		var localMat = getPickTransform(parent);
 		if(localMat == null) return;