[Bf-extensions-cvs] [f344da13] master: glTF exporter: fix vertex color export

Julien Duroure noreply at git.blender.org
Sun Jun 23 10:53:00 CEST 2019


Commit: f344da1374848fe4f410ae4db0a6c2f1edd82293
Author: Julien Duroure
Date:   Sun Jun 23 10:52:34 2019 +0200
Branches: master
https://developer.blender.org/rBAf344da1374848fe4f410ae4db0a6c2f1edd82293

glTF exporter: fix vertex color export

===================================================================

M	io_scene_gltf2/__init__.py
M	io_scene_gltf2/blender/exp/gltf2_blender_extract.py

===================================================================

diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 3b90cc15..a403edf9 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -15,7 +15,7 @@
 bl_info = {
     'name': 'glTF 2.0 format',
     'author': 'Julien Duroure, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
-    "version": (0, 9, 31),
+    "version": (0, 9, 32),
     'blender': (2, 80, 0),
     'location': 'File > Import-Export',
     'description': 'Import-Export as glTF 2.0',
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_extract.py b/io_scene_gltf2/blender/exp/gltf2_blender_extract.py
index b48b76ea..b5c09de7 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_extract.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_extract.py
@@ -936,7 +936,7 @@ def extract_primitives(glTF, blender_mesh, blender_vertex_groups, modifiers, exp
         colors = []
         if export_color:
             for color_index in range(0, color_max):
-                tex_coords.append(primitive[ATTRIBUTES_ID][COLOR_PREFIX + str(color_index)])
+                colors.append(primitive[ATTRIBUTES_ID][COLOR_PREFIX + str(color_index)])
         joints = []
         weights = []
         if export_settings[gltf2_blender_export_keys.SKINS]:



More information about the Bf-extensions-cvs mailing list