Quellcode durchsuchen

Fix for console

clandrin vor 2 Jahren
Ursprung
Commit
333c737fa8
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      h3d/mat/MaterialDatabase.hx

+ 1 - 1
h3d/mat/MaterialDatabase.hx

@@ -25,7 +25,7 @@ class MaterialDatabase {
 
 	function saveData( model : hxd.res.Resource, data : Dynamic ) {
 		var file = getFilePath(model);
-		#if (sys || nodejs)
+		#if ((sys || nodejs) && !usesys)
 		var fs = hxd.impl.Api.downcast(hxd.res.Loader.currentInstance.fs, hxd.fs.LocalFileSystem);
 		if( fs != null && !haxe.io.Path.isAbsolute(file) )
 			file = fs.baseDir + file;