[Bf-extensions-cvs] [6552dc49] blender-v3.3-release: glTF exporter: optimized animation size option was not saved when 'remember export settings'

Julien Duroure noreply at git.blender.org
Thu Sep 22 10:37:03 CEST 2022


Commit: 6552dc494f39489bfcffdda214bcddc62d9238e7
Author: Julien Duroure
Date:   Mon Sep 19 08:57:35 2022 +0200
Branches: blender-v3.3-release
https://developer.blender.org/rBA6552dc494f39489bfcffdda214bcddc62d9238e7

glTF exporter: optimized animation size option was not saved when 'remember export settings'

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

M	io_scene_gltf2/__init__.py

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

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')



More information about the Bf-extensions-cvs mailing list