2
0
Эх сурвалжийг харах

Fix using absolute paths on reload

trethaller 6 жил өмнө
parent
commit
5744725dc1
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      hide/comp/Scene.hx

+ 1 - 1
hide/comp/Scene.hx

@@ -420,7 +420,7 @@ class Scene extends Component implements h3d.IDrawable {
 			var data = sys.io.File.getBytes(fullPath);
 			if( data.get(0) != 'H'.code ) {
 				var hmdOut = new hxd.fmt.fbx.HMDOut(fullPath);
-				hmdOut.absoluteTexturePath = true;
+				hmdOut.absoluteTexturePath = (e == null);
 				hmdOut.loadFile(data);
 				var hmd = hmdOut.toHMD(null, !isAnimation);
 				var out = new haxe.io.BytesOutput();