diff options
author | Jesse Yurkovich <jesse.y@gmail.com> | 2022-08-14 03:36:46 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2022-09-19 15:56:44 +0300 |
commit | 7685aa17ce3d01264797245729d7c3b2ddcb43d4 (patch) | |
tree | 324118a36f46ccd30ef55ebf3d85a23e474813bc /curve_tools/splines_sequence.py | |
parent | 9d801fca4178a322efeb77e318c7d252d3a6889a (diff) |
Fix T93189: Missing UNDO operator options for Curve Tools addon
A variety of operators were missing appropriate bl_options for correct
undo support.
This results in either crashes (auto loft, bi-rail) or other odd
behaviors around returning the scene to the correct previous state
(sometimes having to hit ctrl-z twice to undo once, sometimes undo skips
steps, etc.)
Differential Revision: https://developer.blender.org/D13283
Diffstat (limited to 'curve_tools/splines_sequence.py')
-rw-r--r-- | curve_tools/splines_sequence.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/curve_tools/splines_sequence.py b/curve_tools/splines_sequence.py index d861a1ee..cc5f6680 100644 --- a/curve_tools/splines_sequence.py +++ b/curve_tools/splines_sequence.py @@ -232,6 +232,7 @@ class RearrangeSpline(bpy.types.Operator): bl_idname = "curvetools.rearrange_spline" bl_label = "Rearrange Spline" bl_description = "Rearrange Spline" + bl_options = {'UNDO'} Types = [('NEXT', "Next", "next"), ('PREV', "Prev", "prev")] |