Revert "Writefile: Cleanup Scene runtime data."
This reverts commit ee0d91df5dd75029de6886db13e45af3d4c7ef7c. This is modifying scene data on write, which causes crashes. It can only do that on a copy of the data.
This commit is contained in:
parent
c4ba0d1508
commit
6f4dbb661f
@ -2591,12 +2591,6 @@ static void write_lightcache(WriteData *wd, LightCache *cache)
|
||||
|
||||
static void write_scene(WriteData *wd, Scene *sce, const void *id_address)
|
||||
{
|
||||
/* Clean up, important in undo case to reduce false detection of changed datablocks. */
|
||||
if (sce->ed) {
|
||||
sce->ed->cache = NULL;
|
||||
sce->ed->prefetch_job = NULL;
|
||||
}
|
||||
|
||||
/* write LibData */
|
||||
writestruct_at_address(wd, ID_SCE, Scene, 1, id_address, sce);
|
||||
write_iddata(wd, &sce->id);
|
||||
|
Loading…
Reference in New Issue
Block a user