Explorar o código

inlined isKeyExistOnFrame

Lewy Blue %!s(int64=7) %!d(string=hai) anos
pai
achega
67f4855b5a
Modificáronse 1 ficheiros con 1 adicións e 7 borrados
  1. 1 7
      examples/js/loaders/FBXLoader.js

+ 1 - 7
examples/js/loaders/FBXLoader.js

@@ -2654,18 +2654,12 @@
 
 		return AXES.every( function ( key ) {
 
-			return isKeyExistOnFrame( attributeNode.curves[ key ], frame );
+			return attributeNode.curves[ key ].values[ frame ] !== undefined;
 
 		} );
 
 	}
 
-	function isKeyExistOnFrame( curve, frame ) {
-
-		return curve.values[ frame ] !== undefined;
-
-	}
-
 	// parse an FBX file in ASCII format
 	function TextParser() {}