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:
Diffstat (limited to 'io_scene_gltf2/__init__.py')
-rwxr-xr-xio_scene_gltf2/__init__.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index dc80a1e1..e6653a5d 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, 2, 26),
+ "version": (3, 2, 27),
'blender': (3, 1, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',
@@ -311,6 +311,12 @@ class ExportGLTF2_Base:
default=False
)
+ use_active_scene: BoolProperty(
+ name='Active Scene',
+ description='Export active scene only',
+ default=False
+ )
+
export_extras: BoolProperty(
name='Custom Properties',
description='Export custom properties as glTF extras',
@@ -485,6 +491,7 @@ class ExportGLTF2_Base:
'use_active_collection',
'use_mesh_edges',
'use_mesh_vertices',
+ 'use_active_scene',
]
all_props = self.properties
export_props = {
@@ -544,6 +551,7 @@ class ExportGLTF2_Base:
export_settings['gltf_visible'] = self.use_visible
export_settings['gltf_renderable'] = self.use_renderable
export_settings['gltf_active_collection'] = self.use_active_collection
+ export_settings['gltf_active_scene'] = self.use_active_scene
export_settings['gltf_selected'] = self.use_selection
export_settings['gltf_layers'] = True # self.export_layers
@@ -682,6 +690,7 @@ class GLTF_PT_export_include(bpy.types.Panel):
col.prop(operator, 'use_visible')
col.prop(operator, 'use_renderable')
col.prop(operator, 'use_active_collection')
+ col.prop(operator, 'use_active_scene')
col = layout.column(heading = "Data", align = True)
col.prop(operator, 'export_extras')