Fix #134756: Internal text datablock filepath considered missing

When the text datablock was marked as external at one point and the
filepath was allocated, it would be considered missing.
This commit is contained in:
Brecht Van Lommel
2025-02-19 10:39:08 +01:00
parent efe02a9943
commit 3004848372

View File

@@ -154,7 +154,7 @@ static void text_foreach_path(ID *id, BPathForeachPathData *bpath_data)
{
Text *text = (Text *)id;
if (text->filepath != nullptr) {
if (text->filepath != nullptr && text->filepath[0] != '\0') {
BKE_bpath_foreach_path_allocated_process(bpath_data, &text->filepath);
}
}