Explorar el Código

GLTFLoader: Added deprecated message.

Mr.doob hace 8 años
padre
commit
9e3d48ef07
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      examples/js/loaders/GLTFLoader.js

+ 10 - 0
examples/js/loaders/GLTFLoader.js

@@ -243,6 +243,16 @@ THREE.GLTFLoader = ( function () {
 
 	/* ANIMATION */
 
+	GLTFLoader.Animations = {
+
+		update: function () {
+
+			console.warn( 'THREE.GLTFLoader.Animation has been deprecated. Use THREE.AnimationMixer instead.' );
+
+		}
+
+	};
+
 	function createAnimation( name, interps ) {
 
 		var tracks = [];