Skip to content

Commit

Permalink
Add support for gret 0.0.2, fixes #6
Browse files Browse the repository at this point in the history
gret 0.0.2 by default removes modifiers that are not applied (changed in gret 0.1.0 to keep them by default), this small change sets keep_modifiers to True rather than relying on the default value, effectively adding support for gret 0.0.2 and possibly older versions
Mysteryem committed Jan 24, 2023
1 parent 6e6b28d commit 3fe2c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration_gret.py
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ def _run_gret_shape_key_apply_modifiers_keep_modifiers(obj: Object, modifier_nam
mod.show_viewport = False
# noinspection PyUnresolvedReferences
# Apply all non-disabled modifiers
return utils.op_override(_apply_modifiers_op, {'object': obj})
return utils.op_override(_apply_modifiers_op, {'object': obj}, keep_modifiers=True)
finally:
# Restore modifiers that were temporarily disabled
modifiers = obj.modifiers

0 comments on commit 3fe2c7a

Please sign in to comment.