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>2022-09-25 18:08:07 +0300
committerJulien Duroure <julien.duroure@gmail.com>2022-09-25 18:08:07 +0300
commit51e15a9db4ce463e01c291f6ec9152efe629bab5 (patch)
tree8112796fc281e471a9be0af2858c7f97f01496d7 /io_scene_gltf2/__init__.py
parente77b55e45a2a444b461c2133ce602bbff4b0d65a (diff)
glTF exporter: Big gltf primitive extraction refactoring + Blender attributes export
Diffstat (limited to 'io_scene_gltf2/__init__.py')
-rwxr-xr-xio_scene_gltf2/__init__.py10
1 files changed, 9 insertions, 1 deletions
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')