Fix T89241: Scale to fit overflows into a second line
This commit is contained in:
parent
e1714ce8c9
commit
56f8d7c705
Notes:
blender-bot
2023-02-14 03:52:45 +01:00
Referenced by issue #88449: Blender LTS: Maintenance Task 2.93 Referenced by issue #88449, Blender LTS: Maintenance Task 2.93 Referenced by issue #91401, Text "Scale to Fit" no longer working properly since 2.93.4 Referenced by issue #89241, Scale to Fit overflows into a second line
|
@ -719,6 +719,9 @@ typedef struct VFontToCurveIter {
|
|||
*
|
||||
* Currently only disabled when scale-to-fit is enabled,
|
||||
* so floating-point error doesn't cause unexpected wrapping, see T89241.
|
||||
*
|
||||
* \note This should only be set once, in the #VFONT_TO_CURVE_INIT pass
|
||||
* otherwise iterations wont behave predictably, see T89241.
|
||||
*/
|
||||
bool word_wrap;
|
||||
int status;
|
||||
|
@ -1640,7 +1643,6 @@ static bool vfont_to_curve(Object *ob,
|
|||
else {
|
||||
iter_data->scale_to_fit = iter_data->bisect.min;
|
||||
iter_data->status = VFONT_TO_CURVE_SCALE_ONCE;
|
||||
iter_data->word_wrap = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue