Commit: 8d63135da313b09562bb0cd4b0dd079b0ebabc64
Author: Bastien Montagne
Date:   Wed Apr 1 11:30:30 2020 +0200
Branches: master
https://developer.blender.org/rB8d63135da313b09562bb0cd4b0dd079b0ebabc64

Writefile: Cleanup World 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 78e36a49c11..7567a76f565 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -2399,6 +2399,9 @@ static void write_material(WriteData *wd, Material *ma, 
const void *id_address)
 static void write_world(WriteData *wd, World *wrld, const void *id_address)
 {
   if (wrld->id.us > 0 || wd->use_memfile) {
+    /* Clean up, important in undo case to reduce false detection of changed 
datablocks. */
+    BLI_listbase_clear(&wrld->gpumaterial);
+
     /* write LibData */
     writestruct_at_address(wd, ID_WO, World, 1, id_address, wrld);
     write_iddata(wd, &wrld->id);

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

Reply via email to