Browse Source

Repeated subexpression in MTLLoader.js (#9207)

`value[ 1 ] === 0` is repeated. Looks like it should be `value [ 2 ] === 0` the second time.
kilida 9 years ago
parent
commit
d651bbc7d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/loaders/MTLLoader.js

+ 1 - 1
examples/js/loaders/MTLLoader.js

@@ -259,7 +259,7 @@ THREE.MTLLoader.MaterialCreator.prototype = {
 
 						if ( this.options && this.options.ignoreZeroRGBs ) {
 
-							if ( value[ 0 ] === 0 && value[ 1 ] === 0 && value[ 1 ] === 0 ) {
+							if ( value[ 0 ] === 0 && value[ 1 ] === 0 && value[ 2 ] === 0 ) {
 
 								// ignore