Browse Source

Core: Robustness.

Mr.doob 4 years ago
parent
commit
8ff5d832ee
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/core/InterleavedBufferAttribute.js
  2. 1 1
      src/math/Euler.js

+ 1 - 1
src/core/InterleavedBufferAttribute.js

@@ -13,7 +13,7 @@ class InterleavedBufferAttribute {
 		this.itemSize = itemSize;
 		this.offset = offset;
 
-		this.normalized = normalized;
+		this.normalized = normalized === true;
 
 	}
 

+ 1 - 1
src/math/Euler.js

@@ -228,7 +228,7 @@ class Euler {
 
 		this._order = order;
 
-		if ( update ) this._onChangeCallback();
+		if ( update === true ) this._onChangeCallback();
 
 		return this;