Explorar o código

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

bcorbet %!s(int64=5) %!d(string=hai) anos
pai
achega
25738b8a3c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;