Explorar o código

GLTFLoader: explicit check for boolean value

Pascal Häusler %!s(int64=7) %!d(string=hai) anos
pai
achega
70acdb96c0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.
 			// Here's based on refreshUniformsCommon() and refreshUniformsStandard() in WebGLRenderer.
 			refreshUniforms: function ( renderer, scene, camera, geometry, material, group ) {
 			refreshUniforms: function ( renderer, scene, camera, geometry, material, group ) {
 
 
-				if ( !material.isGLTFSpecularGlossinessMaterial) {
+				if ( material.isGLTFSpecularGlossinessMaterial !== true) {
 
 
 					return;
 					return;