Преглед изворни кода

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 пре 6 година
родитељ
комит
aea39cd5fd
1 измењених фајлова са 1 додато и 1 уклоњено
  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号