Skip to content

Commit

Permalink
GltfLoader: log error when loader extension doesnt have a name (#26559)
Browse files Browse the repository at this point in the history
* GltfLoader: log error when loader extension doesnt have a name

* remove object from error log
  • Loading branch information
marwie committed Oct 5, 2023
1 parent b72b7db commit 79ea108
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/jsm/loaders/GLTFLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ class GLTFLoader extends Loader {
for ( let i = 0; i < this.pluginCallbacks.length; i ++ ) {

const plugin = this.pluginCallbacks[ i ]( parser );

if ( ! plugin.name ) console.error( 'THREE.GLTFLoader: Invalid plugin found: missing name' );

plugins[ plugin.name ] = plugin;

// Workaround to avoid determining as unknown extension
Expand Down

0 comments on commit 79ea108

Please sign in to comment.