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_lattice.c | |
parent | f72419b9ae0335a84d50840c316e0e2fb915f907 (diff) |
Fix T61777: Proportional editing doesn't work with multi edit-mode
Diffstat (limited to 'source/blender/editors/transform/transform_convert_lattice.c')
-rw-r--r-- | source/blender/editors/transform/transform_convert_lattice.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/editors/transform/transform_convert_lattice.c b/source/blender/editors/transform/transform_convert_lattice.c index b73a4c1ab2d..e564733266b 100644 --- a/source/blender/editors/transform/transform_convert_lattice.c +++ b/source/blender/editors/transform/transform_convert_lattice.c @@ -53,6 +53,7 @@ void createTransLatticeVerts(TransInfo *t) int a; 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; bp = latt->def; a = latt->pntsu * latt->pntsv * latt->pntsw; @@ -68,9 +69,10 @@ void createTransLatticeVerts(TransInfo *t) bp++; } - /* note: in prop mode we need at least 1 selected */ - if (countsel == 0) { - return; + /* 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; } if (is_prop_edit) { |