|
@@ -277,7 +277,7 @@ THREE.ShadowMapPlugin = function () {
|
|
|
|
|
|
objectMaterial = getObjectMaterial( object );
|
|
|
|
|
|
- useMorphing = object.geometry.morphTargets.length > 0 && objectMaterial.morphTargets;
|
|
|
+ useMorphing = object.geometry.morphTargets !== undefined && object.geometry.morphTargets.length > 0 && objectMaterial.morphTargets;
|
|
|
useSkinning = object instanceof THREE.SkinnedMesh && objectMaterial.skinning;
|
|
|
|
|
|
if ( object.customDepthMaterial ) {
|