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

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

parent 7c0d4de1
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
bl_info = { bl_info = {
'name': 'glTF 2.0 format', 'name': 'glTF 2.0 format',
'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors', 'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
"version": (3, 4, 12), "version": (3, 4, 13),
'blender': (3, 3, 0), 'blender': (3, 3, 0),
'location': 'File > Import-Export', 'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0', 'description': 'Import-Export as glTF 2.0',
...@@ -394,7 +394,7 @@ class ExportGLTF2_Base: ...@@ -394,7 +394,7 @@ class ExportGLTF2_Base:
default=False default=False
) )
optimize_animation_size: BoolProperty( export_optimize_animation_size: BoolProperty(
name='Optimize Animation Size', name='Optimize Animation Size',
description=( description=(
"Reduce exported file-size by removing duplicate keyframes" "Reduce exported file-size by removing duplicate keyframes"
...@@ -587,7 +587,7 @@ class ExportGLTF2_Base: ...@@ -587,7 +587,7 @@ class ExportGLTF2_Base:
export_settings['gltf_def_bones'] = False export_settings['gltf_def_bones'] = False
export_settings['gltf_nla_strips'] = self.export_nla_strips 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_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 export_settings['gltf_export_anim_single_armature'] = self.export_anim_single_armature
else: else:
export_settings['gltf_frame_range'] = False export_settings['gltf_frame_range'] = False
...@@ -946,7 +946,7 @@ class GLTF_PT_export_animation_export(bpy.types.Panel): ...@@ -946,7 +946,7 @@ class GLTF_PT_export_animation_export(bpy.types.Panel):
layout.prop(operator, 'export_nla_strips') layout.prop(operator, 'export_nla_strips')
if operator.export_nla_strips is False: if operator.export_nla_strips is False:
layout.prop(operator, 'export_nla_strips_merged_animation_name') 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') layout.prop(operator, 'export_anim_single_armature')
......
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