Fix T57989: File loaded as startup
The file contents was used to check if the file was a startup file. Now pass in an argument from startup loading code instead.
This commit is contained in:
@@ -196,7 +196,7 @@ static Main *load_main_from_memory(const void *blend, int blend_size)
|
||||
BlendFileData *bfd;
|
||||
|
||||
G.fileflags |= G_FILE_NO_UI;
|
||||
bfd = BLO_read_from_memory(blend, blend_size, NULL, BLO_READ_SKIP_NONE);
|
||||
bfd = BLO_read_from_memory(blend, blend_size, BLO_READ_SKIP_NONE, NULL);
|
||||
if (bfd) {
|
||||
bmain = bfd->main;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user