diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-10-02 06:17:24 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-10-02 06:17:24 +0300 |
commit | bb1d6edaa65191f79ddd0fc425540758eb93cab0 (patch) | |
tree | f8f9d75ba184fc69a71ef5b62e6737bc1940e551 /io_scene_gltf2/blender/imp/gltf2_blender_primitive.py | |
parent | f9e25350dc87170cedacf1c41d382c69360f76d4 (diff) |
glTF importer: fix bug importing file with no mesh / bug with faceless primitives
Diffstat (limited to 'io_scene_gltf2/blender/imp/gltf2_blender_primitive.py')
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_primitive.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_primitive.py b/io_scene_gltf2/blender/imp/gltf2_blender_primitive.py index dcdd0ac8..8ebee354 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_primitive.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_primitive.py @@ -81,7 +81,7 @@ class BlenderPrimitive(): bme_verts.ensure_lookup_table() # Add edges/faces to bmesh - mode = pyprimitive.mode or 4 + mode = 4 if pyprimitive.mode is None else pyprimitive.mode edges, faces = BlenderPrimitive.edges_and_faces(mode, indices) # NOTE: edges and vertices are in terms of pidxs! for edge in edges: |