Преглед на файлове

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

ncannasse преди 8 години
родител
ревизия
f886495784
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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());
 			for( _ in skin.splitJoints ) ibufs.push(new hxd.IndexBuffer());
 
 
 		g.bounds = new h3d.col.Bounds();
 		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 vertexRemap = new Array<Int>();
 		var index = geom.getPolygons();
 		var index = geom.getPolygons();
 		var count = 0, matPos = 0, stri = 0;
 		var count = 0, matPos = 0, stri = 0;