Implement multiplicative Copy Scale and make it the new default.

Scale is a multiplicative quantity, so adding it doesn't make sense.
However, for backward compatibility reasons, and in case somebody
actually desires the old additive behavior, the old way remains as
an option.

Without this change the only way to properly combine scale is via
parenting or the complicated Transformation constraint.

The new mode is turned on by a flag for file compatibility, but the
RNA option is reversed so that the new behavior feels more default.

Reviewers: aligorith

Differential Revision: https://developer.blender.org/D3558
This commit is contained in:
2018-07-24 18:53:22 +03:00
parent a5aeca4a64
commit 47af343b61
4 changed files with 31 additions and 22 deletions

View File

@@ -420,7 +420,11 @@ class ConstraintButtonsPanel:
row.prop(con, "use_y", text="Y")
row.prop(con, "use_z", text="Z")
layout.prop(con, "use_offset")
row= layout.row()
row.prop(con, "use_offset")
row = row.row()
row.active = con.use_offset
row.prop(con, "use_add")
self.space_template(layout, con)