Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2020-04-03 03:24:14 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-04-03 03:24:33 +0300
commit6f4dbb661f104d7bc487765c618b023b3862e33d (patch)
treee8dc07c2e49d4c898b863935b241ce0fb5360a96
parentc4ba0d15087b5052bb557f94f93ac5f76c75da93 (diff)
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.
-rw-r--r--source/blender/blenloader/intern/writefile.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index ea334f258a1..693c4f8cced 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -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);