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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user