Skip to content
Snippets Groups Projects
Commit 7cbb383d authored by Julien Duroure's avatar Julien Duroure
Browse files

glTF exporter: fix saving use_selection option in .blend file

parent 1d29fc5b
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
bl_info = { bl_info = {
'name': 'glTF 2.0 format', 'name': 'glTF 2.0 format',
'author': 'Julien Duroure, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors', 'author': 'Julien Duroure, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
"version": (1, 3, 26), "version": (1, 3, 27),
'blender': (2, 90, 0), 'blender': (2, 90, 0),
'location': 'File > Import-Export', 'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0', 'description': 'Import-Export as glTF 2.0',
...@@ -384,7 +384,7 @@ class ExportGLTF2_Base: ...@@ -384,7 +384,7 @@ class ExportGLTF2_Base:
# find all export_ props # find all export_ props
all_props = self.properties all_props = self.properties
export_props = {x: getattr(self, x) for x in dir(all_props) export_props = {x: getattr(self, x) for x in dir(all_props)
if x.startswith("export_") and all_props.get(x) is not None} if (x.startswith("export_") or x == "use_selection") and all_props.get(x) is not None}
context.scene[self.scene_key] = export_props context.scene[self.scene_key] = export_props
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment