From 7cbb383d221310a41f9e9d64fab66dab67c3be2a Mon Sep 17 00:00:00 2001 From: Julien Duroure <julien.duroure@gmail.com> Date: Tue, 23 Jun 2020 19:38:31 +0200 Subject: [PATCH] glTF exporter: fix saving use_selection option in .blend file --- io_scene_gltf2/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py index 7fbbfe8ae..e08db93cd 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 -- GitLab