diff options
author | Bastien Montagne <bastien@blender.org> | 2020-04-22 12:37:36 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-04-22 12:37:36 +0300 |
commit | 21f811cb6d3a4fbf8767b3fb0a2c272437c371ed (patch) | |
tree | c55443d6bd8747a35739cce92423fad05ac97e61 /source/blender/blenloader/intern/writefile.c | |
parent | 8845b27dce8908de398cd7b0e0d08fb4be90e005 (diff) | |
parent | 1998154ff4035d57cfc16ffa89ce550b2d998def (diff) |
Merge branch 'blender-v2.83-release'
Diffstat (limited to 'source/blender/blenloader/intern/writefile.c')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index a613603fff9..204df4abd10 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -2588,6 +2588,12 @@ static void write_lightcache(WriteData *wd, LightCache *cache) static void write_scene(WriteData *wd, Scene *sce, const void *id_address) { + if (wd->use_memfile) { + /* Clean up, important in undo case to reduce false detection of changed datablocks. */ + /* XXX This UI data should not be stored in Scene at all... */ + memset(&sce->cursor, 0, sizeof(sce->cursor)); + } + /* write LibData */ writestruct_at_address(wd, ID_SCE, Scene, 1, id_address, sce); write_iddata(wd, &sce->id); |