Skip to content

Commit

Permalink
remove warning when node is undefined, just continue
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Nov 30, 2022
1 parent 1d98d60 commit 2060505
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions examples/jsm/loaders/GLTFLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -3642,16 +3642,7 @@ class GLTFParser {
const input = animationDef.parameters !== undefined ? animationDef.parameters[ sampler.input ] : sampler.input;
const output = animationDef.parameters !== undefined ? animationDef.parameters[ sampler.output ] : sampler.output;

if ( target.node === undefined ) {

if ( target.extensions && target.extensions[ 'KHR_animation_pointer' ] ) {

console.warn( 'THREE.GLTFLoader: KHR_animation_pointer is not yet supported.' );

}

continue;
}
if ( target.node === undefined ) continue;

pendingNodes.push( this.getDependency( 'node', name ) );
pendingInputAccessors.push( this.getDependency( 'accessor', input ) );
Expand Down

0 comments on commit 2060505

Please sign in to comment.