diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2019-09-04 12:06:59 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2019-09-06 07:57:16 +0300 |
commit | f4056e9ec3a89afbc592af3e3d169d2d584a9937 (patch) | |
tree | b100222f89ce3dfbc723e7f0a975b30019c76427 /release/scripts/startup/bl_ui | |
parent | 9972d6c3062010bea514c9e382b0a99275d63a89 (diff) |
Copy Rotation: implement new mixing modes that actually work.
Upon close inspection, the way the Offset mode works in the
Copy Rotation constraint makes no sense, and in fact, destroys
the rotation of its owner unless either it's single axis, or
the order is set specifically to `ZYX Euler`.
Since it can't simply be changed because of backward compatibility
concerns, replace the checkbox with a dropdown that provides a set
of new modes that actually make sense.
Specifically, add a mode that simply adds Euler components together,
and two options that use matrix multiplication in different order.
The Python use_offset property is replaced with compatibility stubs.
Reviewers: brecht
Differential Revision: https://developer.blender.org/D5640
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_constraint.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_constraint.py b/release/scripts/startup/bl_ui/properties_constraint.py index 0ba9fd0630c..ac1ebedeba4 100644 --- a/release/scripts/startup/bl_ui/properties_constraint.py +++ b/release/scripts/startup/bl_ui/properties_constraint.py @@ -392,7 +392,7 @@ class ConstraintButtonsPanel: sub.active = con.use_z sub.prop(con, "invert_z", text="Invert") - layout.prop(con, "use_offset") + layout.prop(con, "mix_mode", text="Mix") self.space_template(layout, con) |