diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2019-09-06 11:50:24 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2019-09-06 12:53:35 +0300 |
commit | a23ce7f3b78b28550c6e6cfd73404b82dc210529 (patch) | |
tree | 92fa9f5dde80773b5c0421271ff0924745f9c3c8 /source/blender | |
parent | 5fd46d27f57f0abacf202cc6d147191998133557 (diff) |
Transformation Constraint: initialize scale range values to 1 instead of 0.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/constraint.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index 317973cc0c1..58011c8d753 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -3753,6 +3753,11 @@ static void transform_new_data(void *cdata) data->map[0] = 0; data->map[1] = 1; data->map[2] = 2; + + for (int i = 0; i < 3; i++) { + data->from_min_scale[i] = data->from_max_scale[i] = 1.0f; + data->to_min_scale[i] = data->to_max_scale[i] = 1.0f; + } } static void transform_id_looper(bConstraint *con, ConstraintIDFunc func, void *userdata) |