diff options
author | Alan Troth <Al> | 2020-06-16 09:44:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-06-16 09:45:53 +0300 |
commit | a64b8aca394fbff622309613d7efef2cae28c0d4 (patch) | |
tree | 4425b0259045f83fc1b2142e7165f11977765292 /source/blender/editors/transform/transform_convert_mball.c | |
parent | f72419b9ae0335a84d50840c316e0e2fb915f907 (diff) |
Fix T61777: Proportional editing doesn't work with multi edit-mode
Diffstat (limited to 'source/blender/editors/transform/transform_convert_mball.c')
-rw-r--r-- | source/blender/editors/transform/transform_convert_mball.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_convert_mball.c b/source/blender/editors/transform/transform_convert_mball.c index 447733357d6..ce5e4dade5a 100644 --- a/source/blender/editors/transform/transform_convert_mball.c +++ b/source/blender/editors/transform/transform_convert_mball.c @@ -47,6 +47,7 @@ void createTransMBallVerts(TransInfo *t) float mtx[3][3], smtx[3][3]; int count = 0, countsel = 0; const bool is_prop_edit = (t->flag & T_PROP_EDIT) != 0; + const bool is_prop_connected = (t->flag & T_PROP_CONNECTED) != 0; /* count totals */ for (ml = mb->editelems->first; ml; ml = ml->next) { @@ -58,8 +59,9 @@ void createTransMBallVerts(TransInfo *t) } } - /* note: in prop mode we need at least 1 selected */ - if (countsel == 0) { + /* Support other objects using PET to adjust these, unless connected is enabled. */ + if (((is_prop_edit && !is_prop_connected) ? count : countsel) == 0) { + tc->data_len = 0; continue; } |