diff options
Diffstat (limited to 'io_scene_gltf2/__init__.py')
-rwxr-xr-x | io_scene_gltf2/__init__.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py index 57bdf3d5..ba7b3848 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": (1, 3, 39), + "version": (1, 3, 40), 'blender': (2, 90, 0), 'location': 'File > Import-Export', 'description': 'Import-Export as glTF 2.0', @@ -862,6 +862,18 @@ class ImportGLTF2(Operator, ImportHelper): default=True ) + merge_vertices: BoolProperty( + name='Merge Vertices', + description=( + 'The glTF format requires discontinuous normals, UVs, and ' + 'other vertex attributes to be stored as separate vertices, ' + 'as required for rendering on typical graphics hardware.\n' + 'This option attempts to combine co-located vertices where possible.\n' + 'Currently cannot combine verts with different normals' + ), + default=False, + ) + import_shading: EnumProperty( name="Shading", items=(("NORMALS", "Use Normal Data", ""), @@ -906,6 +918,7 @@ class ImportGLTF2(Operator, ImportHelper): layout.use_property_decorate = False # No animation. layout.prop(self, 'import_pack_images') + layout.prop(self, 'merge_vertices') layout.prop(self, 'import_shading') layout.prop(self, 'guess_original_bind_pose') layout.prop(self, 'bone_heuristic') |