Browse Source

Fix for console

clandrin 2 years ago
parent
commit
333c737fa8
1 changed files with 1 additions and 1 deletions
  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 ) {
 	function saveData( model : hxd.res.Resource, data : Dynamic ) {
 		var file = getFilePath(model);
 		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);
 		var fs = hxd.impl.Api.downcast(hxd.res.Loader.currentInstance.fs, hxd.fs.LocalFileSystem);
 		if( fs != null && !haxe.io.Path.isAbsolute(file) )
 		if( fs != null && !haxe.io.Path.isAbsolute(file) )
 			file = fs.baseDir + file;
 			file = fs.baseDir + file;