浏览代码

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

bcorbet 5 年之前
父节点
当前提交
25738b8a3c
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;