Skip to content

Commit

Permalink
Updated builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Jun 24, 2016
1 parent 74b3522 commit d8bc876
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
17 changes: 15 additions & 2 deletions build/three.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
18 changes: 9 additions & 9 deletions build/three.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d8bc876

Please sign in to comment.