2
0
Эх сурвалжийг харах

GLTFLoader: explicit check for boolean value

Pascal Häusler 7 жил өмнө
parent
commit
70acdb96c0

+ 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;