Explorar o código

Fix for console

clandrin %!s(int64=3) %!d(string=hai) anos
pai
achega
333c737fa8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;