three.js
three.js copied to clipboard
Blender Exporter: omit emissive and ambient properties from MeshBasicMaterial
This results in a JSON that does not load correctly because the loader does not check that the properties exist on the material before setting them.
if ( json.ambient !== undefined ) material.ambient.setHex( json.ambient );
if ( json.emissive !== undefined ) material.emissive.setHex( json.emissive );
Going to make sure the JSON omits these properties when the material is a MeshBasicMaterial
The ambient property has been removed in #5809.
Ah thanks. And @mrdoob pinged me as well and I totally missed it.
Fixed https://github.com/mrdoob/three.js/pull/6048/