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

fix: there was a runtime error with clipShadows true while clippingPlanes not yet set to an array (#24144)

Co-authored-by: Joe Pea <[email protected]>
LUME Bot 3 жил өмнө
parent
commit
9203453841

+ 1 - 1
src/renderers/webgl/WebGLShadowMap.js

@@ -242,7 +242,7 @@ function WebGLShadowMap( _renderer, _objects, _capabilities ) {
 
 		}
 
-		if ( ( _renderer.localClippingEnabled && material.clipShadows === true && material.clippingPlanes.length !== 0 ) ||
+		if ( ( _renderer.localClippingEnabled && material.clipShadows === true && Array.isArray( material.clippingPlanes ) && material.clippingPlanes.length !== 0 ) ||
 			( material.displacementMap && material.displacementScale !== 0 ) ||
 			( material.alphaMap && material.alphaTest > 0 ) ) {