[Bf-extensions-cvs] [d18a07f5] master: glTF exporter: Fix VertexColor export for Corner domain
Julien Duroure
noreply at git.blender.org
Thu Dec 22 07:55:13 CET 2022
Commit: d18a07f51404ff155de0c21ac1ea32e839e74d88
Author: Julien Duroure
Date: Thu Dec 22 07:55:09 2022 +0100
Branches: master
https://developer.blender.org/rBAd18a07f51404ff155de0c21ac1ea32e839e74d88
glTF exporter: Fix VertexColor export for Corner domain
===================================================================
M io_scene_gltf2/__init__.py
M io_scene_gltf2/blender/exp/gltf2_blender_gather_primitives_extract.py
===================================================================
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 234926a2..84340c94 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -4,7 +4,7 @@
bl_info = {
'name': 'glTF 2.0 format',
'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
- "version": (3, 5, 10),
+ "version": (3, 5, 11),
'blender': (3, 4, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitives_extract.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitives_extract.py
index 0b091a6a..ea7e39e1 100644
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitives_extract.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitives_extract.py
@@ -566,11 +566,7 @@ class PrimitiveCreator:
elif attr['blender_domain'] == "CORNER":
colors = colors.reshape(-1, 4)
- data_dots = colors[self.dots['vertex_index']]
- if self.export_settings['gltf_loose_edges'] and attr['blender_domain'] == "POINT":
- data_dots_edges = colors[self.dots_edges['vertex_index']]
- if self.export_settings['gltf_loose_points'] and attr['blender_domain'] == "POINT":
- data_dots_points = colors[self.dots_points['vertex_index']]
+ data_dots = colors
del colors
# colors are already linear, no need to switch color space
More information about the Bf-extensions-cvs
mailing list