|
@@ -2841,14 +2841,13 @@ THREE.GLTFLoader = ( function () {
|
|
|
|
|
|
if ( PATH_PROPERTIES[ target.path ] === PATH_PROPERTIES.weights ) {
|
|
|
|
|
|
- // node should be THREE.Group here but
|
|
|
+ // node can be THREE.Group here but
|
|
|
// PATH_PROPERTIES.weights(morphTargetInfluences) should be
|
|
|
- // the property of a mesh object under node.
|
|
|
- // So finding targets here.
|
|
|
+ // the property of a mesh object under group.
|
|
|
|
|
|
node.traverse( function ( object ) {
|
|
|
|
|
|
- if ( object.isMesh === true && object.material.morphTargets === true ) {
|
|
|
+ if ( object.isMesh === true && object.morphTargetInfluences ) {
|
|
|
|
|
|
targetNames.push( object.name ? object.name : object.uuid );
|
|
|
|