Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion examples/js/loaders/ColladaLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -3183,14 +3183,26 @@ THREE.ColladaLoader.prototype = {

}

var fallbackMaterial = new THREE.MeshBasicMaterial( { color: 0xff00ff ) };
Copy link
Contributor

@Splizard Splizard Jul 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There appears to be a syntax error here! ( { color: 0xff00ff ) }

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Can you make a PR with the change?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, sure thing, I should have mentioned it before! ha
#14464


function resolveMaterialBinding( keys, instanceMaterials ) {

var materials = [];

for ( var i = 0, l = keys.length; i < l; i ++ ) {

var id = instanceMaterials[ keys[ i ] ];
materials.push( getMaterial( id ) );

if ( id === undefined ) {

console.warn( 'THREE.ColladaLoader: Material with key %s not found. Apply fallback material.', keys[ i ] );
materials.push( fallbackMaterial );

} else {

materials.push( getMaterial( id ) );

}

}

Expand Down