Fix: glTF: Fix active/inactive UI for ShapeKeys animation panel

This commit is contained in:
Julien Duroure
2025-05-02 15:49:16 +02:00
parent bc8a39fba0
commit 743a6ae2a5

View File

@@ -5,7 +5,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": (4, 5, 26),
"version": (4, 5, 27),
'blender': (4, 4, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',
@@ -1726,13 +1726,16 @@ def export_panel_animation_armature(layout, operator):
def export_panel_animation_shapekeys(layout, operator):
header, body = layout.panel("GLTF_export_animation_shapekeys", default_closed=True)
header.active = operator.export_animations and operator.export_morph
header.use_property_split = False
header.prop(operator, "export_morph_animation", text="")
header.label(text="Shape Keys Animation")
if body:
body.active = operator.export_animations
body.active = operator.export_animations and operator.export_morph
body.prop(operator, 'export_morph_reset_sk_data')
row = body.row()
row.active = operator.export_morph_animation
row.prop(operator, 'export_morph_reset_sk_data')
def export_panel_animation_sampling(layout, operator):