Selaa lähdekoodia

GLTFLoader: explicit check for boolean value

Pascal Häusler 7 vuotta sitten
vanhempi
commit
70acdb96c0
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      examples/js/loaders/GLTFLoader.js

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

@@ -714,7 +714,7 @@ THREE.GLTFLoader = ( function () {
 			// Here's based on refreshUniformsCommon() and refreshUniformsStandard() in WebGLRenderer.
 			refreshUniforms: function ( renderer, scene, camera, geometry, material, group ) {
 
-				if ( !material.isGLTFSpecularGlossinessMaterial) {
+				if ( material.isGLTFSpecularGlossinessMaterial !== true) {
 
 					return;