2
0
Эх сурвалжийг харах

Addressing PR feedback from https://github.com/mrdoob/three.js/pull/18822#discussion_r403350989

- Check AnimationClip blendMode against undefined to decide whether to set to default
Christine Morten 5 жил өмнө
parent
commit
aea39cd5fd

+ 1 - 1
src/animation/AnimationClip.js

@@ -22,7 +22,7 @@ function AnimationClip( name, duration, tracks, blendMode ) {
 	this.name = name;
 	this.tracks = tracks;
 	this.duration = ( duration !== undefined ) ? duration : - 1;
-	this.blendMode = blendMode || NormalAnimationBlendMode;
+	this.blendMode = ( blendMode !== undefined ) ? blendMode : NormalAnimationBlendMode;
 
 	this.uuid = MathUtils.generateUUID();