Explorar o código

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 %!s(int64=6) %!d(string=hai) anos
pai
achega
aea39cd5fd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/animation/AnimationClip.js

+ 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();
 

粤ICP备19079148号