Skip to content

Commit 03d90f4

Browse files
authored
AnimationClip: Deprecate parseAnimation(). (#30625)
1 parent e28af6f commit 03d90f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/animation/AnimationClip.js

+3
Original file line numberDiff line numberDiff line change
@@ -287,12 +287,15 @@ class AnimationClip {
287287
* Parses the `animation.hierarchy` format and returns a new animation clip.
288288
*
289289
* @static
290+
* @deprecated since r175.
290291
* @param {Object} animation - A serialized animation clip as JSON.
291292
* @param {Array<Bones>} bones - An array of bones.
292293
* @return {?AnimationClip} The new animation clip.
293294
*/
294295
static parseAnimation( animation, bones ) {
295296

297+
console.warn( 'THREE.AnimationClip: parseAnimation() is deprecated and will be removed with r185' );
298+
296299
if ( ! animation ) {
297300

298301
console.error( 'THREE.AnimationClip: No animation in JSONLoader data.' );

0 commit comments

Comments
 (0)