Explorar o código

use a float32 buffer in js to make sure comparisons are done one float32 values

ncannasse %!s(int64=8) %!d(string=hai) anos
pai
achega
f886495784
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

@@ -85,7 +85,7 @@ class HMDOut extends BaseLibrary {
 			for( _ in skin.splitJoints ) ibufs.push(new hxd.IndexBuffer());
 
 		g.bounds = new h3d.col.Bounds();
-		var tmpBuf = new haxe.ds.Vector<hxd.impl.Float32>(stride);
+		var tmpBuf = #if js new js.html.Float32Array(stride) #else new haxe.ds.Vector<hxd.impl.Float32>(stride) #end;
 		var vertexRemap = new Array<Int>();
 		var index = geom.getPolygons();
 		var count = 0, matPos = 0, stri = 0;