forked from bartvdbraak/blender
Fix for text3d issue, \n was attempting to find a character too
This commit is contained in:
parent
1a91b8bd5d
commit
1aa62605cd
@ -594,7 +594,7 @@ makebreak:
|
|||||||
|
|
||||||
if (vfont == NULL) break;
|
if (vfont == NULL) break;
|
||||||
|
|
||||||
if (i != slen) {
|
if (!ELEM(ascii, '\n', '\0')) {
|
||||||
che = find_vfont_char(vfd, ascii);
|
che = find_vfont_char(vfd, ascii);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -606,6 +606,9 @@ makebreak:
|
|||||||
che = BLI_vfontchar_from_freetypefont(vfont, ascii);
|
che = BLI_vfontchar_from_freetypefont(vfont, ascii);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
che = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/* No VFont found */
|
/* No VFont found */
|
||||||
if (vfont == NULL) {
|
if (vfont == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user