Nicolas Cannasse 5 年之前
父节点
当前提交
8e513cc66b
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      hxd/fmt/fbx/Data.hx

+ 2 - 4
hxd/fmt/fbx/Data.hx

@@ -91,15 +91,13 @@ class FbxTools {
 		return false;
 	}
 
-	static inline function idToInt( f : Float ) {
-		#if (neko || hl)
-		// ids are unsigned
+	static function idToInt( f : Float ) {
+		// ids are unsigned and can be out of int range
 		f %= 4294967296.;
 		if( f >= 2147483648. )
 			f -= 4294967296.;
 		else if( f < -2147483648. )
 			f += 4294967296.;
-		#end
 		return Std.int(f);
 	}