Explorar o código

only use mikktspace hl in haxe 4.0+

Nicolas Cannasse %!s(int64=7) %!d(string=hai) anos
pai
achega
721e0605cf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      hxd/fmt/fbx/HMDOut.hx

+ 1 - 1
hxd/fmt/fbx/HMDOut.hx

@@ -40,7 +40,7 @@ class HMDOut extends BaseLibrary {
 		var uvs = geom.getUVs();
 		var index = geom.getIndexes();
 
-		#if (hl && !hl_disable_mikkt)
+		#if (hl && !hl_disable_mikkt && (haxe_ver >= "4.0"))
 		var m = new hl.Format.Mikktspace();
 		m.buffer = new hl.Bytes(8 * 4 * index.vidx.length);
 		m.stride = 8;