Nicolas Cannasse 8 vuotta sitten
vanhempi
commit
b84b75a61a
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      hide/ui/Ide.hx

+ 3 - 1
hide/ui/Ide.hx

@@ -205,7 +205,9 @@ class Ide {
 		}
 		window.title = "HIDE - " + dir;
 		props = Props.loadForProject(projectDir, resourceDir);
-		hxd.res.Loader.currentInstance = new hxd.res.Loader(new hxd.fs.LocalFileSystem(resourceDir));
+
+		var localDir = sys.FileSystem.exists(resourceDir) ? resourceDir : projectDir;
+		hxd.res.Loader.currentInstance = new hxd.res.Loader(new hxd.fs.LocalFileSystem(localDir));
 		renderers = [
 			new h3d.mat.MaterialSetup("Default"),
 		];