Browse Source

fixed uv anims in hmd-v3

ncannasse 6 years ago
parent
commit
a84cad48c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hxd/fmt/fbx/HMDOut.hx

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

@@ -795,7 +795,7 @@ class HMDOut extends BaseLibrary {
 			}
 			}
 			if( obj.uvs != null ) {
 			if( obj.uvs != null ) {
 				o.flags.set(HasUV);
 				o.flags.set(HasUV);
-				if( count == 0 ) count = obj.uvs.length else if( count != obj.uvs.length ) throw "assert";
+				if( count == 0 ) count = obj.uvs.length>>1 else if( count != obj.uvs.length>>1 ) throw "assert";
 				if( d.version < 3 )
 				if( d.version < 3 )
 					for( f in obj.uvs )
 					for( f in obj.uvs )
 						writeFloat(f);
 						writeFloat(f);