Parcourir la source

AnimationClip: Deprecate `parseAnimation()`. (#30625)

Michael Herzog il y a 1 an
Parent
commit
03d90f48ae
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/animation/AnimationClip.js

+ 3 - 0
src/animation/AnimationClip.js

@@ -287,12 +287,15 @@ class AnimationClip {
 	 * Parses the `animation.hierarchy` format and returns a new animation clip.
 	 *
 	 * @static
+	 * @deprecated since r175.
 	 * @param {Object} animation - A serialized animation clip as JSON.
 	 * @param {Array<Bones>} bones - An array of bones.
 	 * @return {?AnimationClip} The new animation clip.
 	 */
 	static parseAnimation( animation, bones ) {
 
+		console.warn( 'THREE.AnimationClip: parseAnimation() is deprecated and will be removed with r185' );
+
 		if ( ! animation ) {
 
 			console.error( 'THREE.AnimationClip: No animation in JSONLoader data.' );

粤ICP备19079148号