Skip to content

Commit 872dcb7

Browse files
authored
Merge pull request #15527 from gkjohnson/collada-exporter-warning
Add Collada Exporter warning
2 parents 4cb966e + 98743b5 commit 872dcb7

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

examples/js/exporters/ColladaExporter.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,15 @@ THREE.ColladaExporter.prototype = {
359359

360360
type = 'constant';
361361

362+
if ( m.map !== null ) {
363+
364+
// The Collada spec does not support diffuse texture maps with the
365+
// constant shader type.
366+
// mrdoob/three.js#15469
367+
console.warn( 'ColladaExporter: Texture maps not supported with MeshBasicMaterial.' );
368+
369+
}
370+
362371
}
363372

364373
var emissive = m.emissive ? m.emissive : new THREE.Color( 0, 0, 0 );
@@ -427,7 +436,7 @@ THREE.ColladaExporter.prototype = {
427436
`<float sid="shininess">${ shininess }</float>`
428437
) +
429438

430-
'</shininess>'
439+
'</shininess>'
431440
: ''
432441
) +
433442

0 commit comments

Comments
 (0)