diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2022-10-17 16:08:11 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2022-10-17 16:08:11 +0300 |
commit | 7e2fa377ab1fcd622126e805f1ec7b15c077bbd0 (patch) | |
tree | dd22a1af1d96f4df2840069125bf421c7d919904 /io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py | |
parent | 99d2c979a9bd4b38d618696c83cb02fd6d8083ae (diff) |
glTF exporter: fix additional Vertex Color normalization
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py')
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py index 565378d1..833b6734 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py @@ -148,7 +148,7 @@ def __gather_attribute(blender_primitive, attribute, export_settings): "POSITION": True } - if (attribute.startswith("_COLOR") or attribute.startswith("COLOR_")) and blender_primitive["attributes"][attribute]['component_type'] == gltf2_io_constants.ComponentType.UnsignedShort: + if (attribute.startswith("_") or attribute.startswith("COLOR_")) and blender_primitive["attributes"][attribute]['component_type'] == gltf2_io_constants.ComponentType.UnsignedShort: # Byte Color vertex color, need to normalize data['data'] *= 65535 |