[Bf-extensions-cvs] [7cbb383d] master: glTF exporter: fix saving use_selection option in .blend file

Julien Duroure noreply at git.blender.org
Tue Jun 23 19:38:59 CEST 2020


Commit: 7cbb383d221310a41f9e9d64fab66dab67c3be2a
Author: Julien Duroure
Date:   Tue Jun 23 19:38:31 2020 +0200
Branches: master
https://developer.blender.org/rBA7cbb383d221310a41f9e9d64fab66dab67c3be2a

glTF exporter: fix saving use_selection option in .blend file

===================================================================

M	io_scene_gltf2/__init__.py

===================================================================

diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 7fbbfe8a..e08db93c 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, 26),
+    "version": (1, 3, 27),
     'blender': (2, 90, 0),
     'location': 'File > Import-Export',
     'description': 'Import-Export as glTF 2.0',
@@ -384,7 +384,7 @@ class ExportGLTF2_Base:
         # find all export_ props
         all_props = self.properties
         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



More information about the Bf-extensions-cvs mailing list