diff --git a/build/three.js b/build/three.js index 8fe88ea1bbdbf1..96e1540258c6d2 100644 --- a/build/three.js +++ b/build/three.js @@ -29892,8 +29892,21 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) { if ( ! customMaterial ) { - var useMorphing = geometry.morphTargets !== undefined && - geometry.morphTargets.length > 0 && material.morphTargets; + var useMorphing = false; + + if ( material.morphTargets ) { + + if ( geometry instanceof THREE.BufferGeometry ) { + + useMorphing = geometry.morphAttributes && geometry.morphAttributes.position && geometry.morphAttributes.position.length > 0; + + } else if ( geometry instanceof THREE.Geometry ) { + + useMorphing = geometry.morphTargets && geometry.morphTargets.length > 0; + + } + + } var useSkinning = object instanceof THREE.SkinnedMesh && material.skinning; diff --git a/build/three.min.js b/build/three.min.js index aec9ebc34336d5..e8a9ea43ae2fc8 100644 --- a/build/three.min.js +++ b/build/three.min.js @@ -708,15 +708,15 @@ toneMapping:a.toneMapping,physicallyCorrectLights:a.physicallyCorrectLights,prem return c.join()};this.acquireProgram=function(b,c,e){for(var f,m=0,p=d.length;m