KhronosGroup / glTF-Blender-IO

Blender glTF 2.0 importer and exporter
https://docs.blender.org/manual/en/latest/addons/import_export/scene_gltf2.html
Apache License 2.0
1.45k stars 306 forks source link

Active vertex color export #2274

Open Blood-Machine opened 2 weeks ago

Blood-Machine commented 2 weeks ago

Noticed that setting vertex color in the exporter to "active' seems to do nothing, or at least not exporting alpha in any capacity so had it default to exporting active vertex color and vertex alpha if this setting is chosen

There's another instance of gltf_vertex_color == ACTIVE being used elsewhere,as well as double implementation of "gltf_active_vertex_color_when_no_material' is True" seemingly, so I reimplemented this simply next to the seemingly functional reimplementation of "gltf_active_vertex_color_when_no_material' is True" with just a conditional

CLAassistant commented 2 weeks ago

CLA assistant check
All committers have signed the CLA.

Blood-Machine commented 2 weeks ago

Hi, sorry, just run up against it behaving inconsistently. When previously exporting with the "active" vertex colour export, it wouldn't export alpha properly, but now it seems to be behaving correctly without any alteration to the code. Will verify, sorry for the bother