Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Duroure <julien.duroure@gmail.com>2019-01-09 21:46:45 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-01-09 21:46:45 +0300
commitb410a70fa9ba09bf9c1091d87f38f0ed8dae4895 (patch)
tree1d29e31952f861dbf02f8433f6e6861f5607f587 /io_scene_gltf2/blender/exp/gltf2_blender_extract.py
parent52111c31d7d0d39893b11a5242cbfe2bfbda0d12 (diff)
glTF export: enhancement & fixes:
* implement KHR_materials_unlit export * Fix primitive restart values * Fix jpg uri/mime type * Fix bug when image has no color channels * Check animation has actions * Ignore meshes without primitives * Fix materials when not selected in export settings * Improve error message for invalid animation target type * Animation with errors are ignored, but export continues * Export of BaseColorFactor
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_extract.py')
-rwxr-xr-xio_scene_gltf2/blender/exp/gltf2_blender_extract.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_extract.py b/io_scene_gltf2/blender/exp/gltf2_blender_extract.py
index 0add794a..42be29b7 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_extract.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_extract.py
@@ -975,7 +975,12 @@ def extract_primitives(glTF, blender_mesh, blender_vertex_groups, modifiers, exp
#
- range_indices = 65536
+ # NOTE: Values used by some graphics APIs as "primitive restart" values are disallowed.
+ # Specifically, the value 65535 (in UINT16) cannot be used as a vertex index.
+ # https://github.com/KhronosGroup/glTF/issues/1142
+ # https://github.com/KhronosGroup/glTF/pull/1476/files
+
+ range_indices = 65535
#