Fix T47289: Edges don't transform in face-mode

This commit is contained in:
Campbell Barton 2016-02-01 13:15:02 +11:00
parent 25860e92c2
commit 17429dce00
Notes: blender-bot 2023-02-14 08:33:26 +01:00
Referenced by issue #47289, Cannot scale a circle in edit mode and use it for screw when added to existing model
1 changed files with 8 additions and 19 deletions

View File

@ -2331,25 +2331,14 @@ static void createTransEditVerts(TransInfo *t)
mirror = 1;
}
/* quick check if we can transform */
/* note: in prop mode we need at least 1 selected */
if (em->selectmode & SCE_SELECT_VERTEX) {
if (bm->totvertsel == 0) {
goto cleanup;
}
}
else if (em->selectmode & SCE_SELECT_EDGE) {
if (bm->totvertsel == 0 || bm->totedgesel == 0) {
goto cleanup;
}
}
else if (em->selectmode & SCE_SELECT_FACE) {
if (bm->totvertsel == 0 || bm->totfacesel == 0) {
goto cleanup;
}
}
else {
BLI_assert(0);
/**
* Quick check if we can transform.
*
* \note ignore modes here, even in edge/face modes, transform data is created by selected vertices.
* \note in prop mode we need at least 1 selected.
*/
if (bm->totvertsel == 0) {
goto cleanup;
}
if (t->mode == TFM_BWEIGHT) {