Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-08-19 10:55:40 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-08-19 10:56:25 +0300
commit4db4123409de6f42a519cd03275d680b3d821298 (patch)
treee181a3c560f653e131e362dfaf6a9ff1afe7211f
parentcf721942149057684c089c0677c224dbe9d90c52 (diff)
Correct assert from 22ab0159a9754365e2d10a1bc658d4409d084fa6
-rw-r--r--source/blender/blenfont/intern/blf_font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenfont/intern/blf_font.c b/source/blender/blenfont/intern/blf_font.c
index 9ddc788d2dc..00d3cfb09eb 100644
--- a/source/blender/blenfont/intern/blf_font.c
+++ b/source/blender/blenfont/intern/blf_font.c
@@ -356,7 +356,7 @@ BLI_INLINE void blf_kerning_step_fast(FontBLF *font,
int *pen_x_p)
{
/* `blf_font_ensure_ascii_kerning(font, gc);` must be called before this function. */
- BLI_assert(font->kerning_cache != NULL);
+ BLI_assert(font->kerning_cache != NULL || !FT_HAS_KERNING(font->face));
if (g_prev != NULL && FT_HAS_KERNING(font->face)) {
if ((c_prev < KERNING_CACHE_TABLE_SIZE) && (c < GLYPH_ASCII_TABLE_SIZE)) {