Cleanup: use new accessors to blendfile path (Main.name).
This commit is contained in:
@@ -742,7 +742,7 @@ static int editsource_text_edit(
|
||||
}
|
||||
|
||||
if (text == NULL) {
|
||||
text = BKE_text_load(bmain, filepath, bmain->name);
|
||||
text = BKE_text_load(bmain, filepath, BKE_main_blendfile_path(bmain));
|
||||
id_us_ensure_real(&text->id);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user