Fix sequencer font loading using an unexpected path

Reuse the existing font loading function which handles this case.
This commit is contained in:
Campbell Barton 2021-08-27 12:59:55 +10:00
parent 20ef771374
commit efc129bc82
Notes: blender-bot 2023-02-14 11:07:28 +01:00
Referenced by commit 0b6be26126, BLF: remove checks for blend file relative paths
1 changed files with 1 additions and 3 deletions

View File

@ -3850,9 +3850,7 @@ static ImBuf *do_text_effect(const SeqRenderData *context,
if (data->text_blf_id == SEQ_FONT_NOT_LOADED) {
data->text_blf_id = -1;
if (data->text_font) {
data->text_blf_id = BLF_load(data->text_font->filepath);
}
SEQ_effect_text_font_load(data, false);
}
if (data->text_blf_id >= 0) {