Fix 3D text selection & cursor mismatch when not on curve

Commit 5c184525ed improved text cursor
placement when text is on a curve, but when not on a curve it is now
on the baseline. This corrects for that, placing 25% below baseline.
This commit is contained in:
Harley Acheson
2023-04-28 14:12:56 -07:00
parent 609010f5c0
commit a20bb83c21

View File

@@ -1463,6 +1463,10 @@ static bool vfont_to_curve(Object *ob,
sb->x -= sinf(ct->rot) * font_select_y_offset;
sb->y -= cosf(ct->rot) * font_select_y_offset;
}
else {
/* Simple downward shift below baseline when not rotated. */
sb->y -= font_select_y_offset;
}
sb->x *= font_size;
sb->y *= font_size;
selboxes[i - selstart].h = font_size;