Fix T77164: scaling/rotation fails for 3 selected NURB points

This commit is contained in:
Campbell Barton 2020-06-05 00:40:14 +10:00
parent 3da4724f72
commit 733a3e3a70
Notes: blender-bot 2023-10-13 01:54:23 +02:00
Referenced by issue #78060, Blender 2.83: Cannot properly transform 3 vertices on curves
Referenced by issue #77796, Curve handles can no longer be rotated when handle type is automatic
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
Referenced by issue #77164, Nurbs: can't scale or rotate if odd number of vertices selected
1 changed files with 4 additions and 2 deletions

View File

@ -111,8 +111,10 @@ void transform_around_single_fallback(TransInfo *t)
}
if (tc->data_len == 3) {
const TransData *td = tc->data;
if ((td[0].loc == td[1].loc) && (td[1].loc == td[2].loc)) {
is_data_single = true;
if ((td[0].flag | td[1].flag | td[2].flag) & TD_BEZTRIPLE) {
if ((td[0].loc == td[1].loc) && (td[1].loc == td[2].loc)) {
is_data_single = true;
}
}
}
break;