From 6552dc494f39489bfcffdda214bcddc62d9238e7 Mon Sep 17 00:00:00 2001 From: Julien Duroure Date: Mon, 19 Sep 2022 08:57:35 +0200 Subject: glTF exporter: optimized animation size option was not saved when 'remember export settings' --- io_scene_gltf2/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py index be5feeb5..c61241ea 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, 3, 29), + "version": (3, 3, 30), 'blender': (3, 3, 0), 'location': 'File > Import-Export', 'description': 'Import-Export as glTF 2.0', @@ -394,7 +394,7 @@ class ExportGLTF2_Base: default=False ) - optimize_animation_size: BoolProperty( + export_optimize_animation_size: BoolProperty( name='Optimize Animation Size', description=( "Reduce exported file-size by removing duplicate keyframes" @@ -587,7 +587,7 @@ class ExportGLTF2_Base: export_settings['gltf_def_bones'] = False export_settings['gltf_nla_strips'] = self.export_nla_strips export_settings['gltf_nla_strips_merged_animation_name'] = self.export_nla_strips_merged_animation_name - export_settings['gltf_optimize_animation'] = self.optimize_animation_size + export_settings['gltf_optimize_animation'] = self.export_optimize_animation_size export_settings['gltf_export_anim_single_armature'] = self.export_anim_single_armature else: export_settings['gltf_frame_range'] = False @@ -946,7 +946,7 @@ class GLTF_PT_export_animation_export(bpy.types.Panel): layout.prop(operator, 'export_nla_strips') if operator.export_nla_strips is False: layout.prop(operator, 'export_nla_strips_merged_animation_name') - layout.prop(operator, 'optimize_animation_size') + layout.prop(operator, 'export_optimize_animation_size') layout.prop(operator, 'export_anim_single_armature') -- cgit v1.2.3