FBX: support new color attributes, and sRGB/Linear/None colors option (T98721)
FBX exporter code was only supporting "Face Corner - Byte Color" attribute type, using the deprecated Mesh.vertex_colors API. Update the to use the new attributes API, and to handle all the attribute combinations. An option to pick between sRGB (default, matches current behavior), Linear (requested in T82847) or None (don't export/import any color attributes) has been added to the exporter and the importer. Reviewed By: Bastien Montagne Differential Revision: https://developer.blender.org/D15942
Showing
- io_scene_fbx/__init__.py 22 additions, 2 deletionsio_scene_fbx/__init__.py
- io_scene_fbx/export_fbx_bin.py 22 additions, 7 deletionsio_scene_fbx/export_fbx_bin.py
- io_scene_fbx/fbx_utils.py 2 additions, 2 deletionsio_scene_fbx/fbx_utils.py
- io_scene_fbx/import_fbx.py 12 additions, 7 deletionsio_scene_fbx/import_fbx.py
Loading
Please register or sign in to comment