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 b6b522507a
commit c2f763a290
+1 -1
View File
@@ -155,7 +155,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);
}
}