Commit: 5e176d67e193b80054392b3e9190510fd90001e4
Author: Bastien Montagne
Date:   Wed Apr 1 12:38:23 2020 +0200
Branches: master
https://developer.blender.org/rB5e176d67e193b80054392b3e9190510fd90001e4

Writefile: Cleanup Volume runtime data.

===================================================================

M       source/blender/blenloader/intern/writefile.c

===================================================================

diff --git a/source/blender/blenloader/intern/writefile.c 
b/source/blender/blenloader/intern/writefile.c
index 254a6f1876e..ea334f258a1 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -3849,6 +3849,9 @@ static void write_pointcloud(WriteData *wd, PointCloud 
*pointcloud, const void *
 static void write_volume(WriteData *wd, Volume *volume, const void *id_address)
 {
   if (volume->id.us > 0 || wd->use_memfile) {
+    /* Clean up, important in undo case to reduce false detection of changed 
datablocks. */
+    volume->runtime.grids = 0;
+
     /* write LibData */
     writestruct_at_address(wd, ID_VO, Volume, 1, id_address, volume);
     write_iddata(wd, &volume->id);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to