Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2018-07-24 18:53:22 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2018-08-13 19:57:15 +0300
commit47af343b6137e4290cc4a842daac25ff8d8cb65f (patch)
tree64fec18c9587a72dfc7af645f8a86b5df9e9fa7a /release/scripts/startup/bl_ui/properties_constraint.py
parenta5aeca4a64dfd2ec6d0d68acf2fd9e4a9498558d (diff)
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
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_constraint.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_constraint.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_constraint.py b/release/scripts/startup/bl_ui/properties_constraint.py
index b7880e605b3..352b96c6431 100644
--- a/release/scripts/startup/bl_ui/properties_constraint.py
+++ b/release/scripts/startup/bl_ui/properties_constraint.py
@@ -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)