From 51e15a9db4ce463e01c291f6ec9152efe629bab5 Mon Sep 17 00:00:00 2001 From: Julien Duroure Date: Sun, 25 Sep 2022 17:08:07 +0200 Subject: glTF exporter: Big gltf primitive extraction refactoring + Blender attributes export --- io_scene_gltf2/__init__.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'io_scene_gltf2/__init__.py') diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py index 4d8acd68..610c061a 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, 4, 22), + "version": (3, 4, 23), 'blender': (3, 3, 0), 'location': 'File > Import-Export', 'description': 'Import-Export as glTF 2.0', @@ -273,6 +273,12 @@ class ExportGLTF2_Base: default=True ) + export_attributes: BoolProperty( + name='Attributes', + description='Export Attributes', + default=False + ) + use_mesh_edges: BoolProperty( name='Loose Edges', description=( @@ -579,6 +585,7 @@ class ExportGLTF2_Base: export_settings['gltf_materials'] = self.export_materials export_settings['gltf_colors'] = self.export_colors + export_settings['gltf_attributes'] = self.export_attributes export_settings['gltf_cameras'] = self.export_cameras export_settings['gltf_original_specular'] = self.export_original_specular @@ -808,6 +815,7 @@ class GLTF_PT_export_geometry_mesh(bpy.types.Panel): col.active = operator.export_normals col.prop(operator, 'export_tangents') layout.prop(operator, 'export_colors') + layout.prop(operator, 'export_attributes') col = layout.column() col.prop(operator, 'use_mesh_edges') -- cgit v1.2.3