Browse Source

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

bcorbet 5 years ago
parent
commit
25738b8a3c
1 changed files with 1 additions and 0 deletions
  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;