[Bf-blender-cvs] [4f509db181f] master: Writefile: Cleanup Text runtime data.

Bastien Montagne noreply at git.blender.org
Wed Apr 1 14:27:36 CEST 2020


Commit: 4f509db181f6a73383180f0fa19239b8deb46d9c
Author: Bastien Montagne
Date:   Wed Apr 1 10:38:20 2020 +0200
Branches: master
https://developer.blender.org/rB4f509db181f6a73383180f0fa19239b8deb46d9c

Writefile: Cleanup Text 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 75e15525ede..c92a64288d9 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -3179,6 +3179,9 @@ static void write_text(WriteData *wd, Text *text, const void *id_address)
     text->flags &= ~TXT_ISEXT;
   }
 
+  /* Clean up, important in undo case to reduce false detection of changed datablocks. */
+  text->compiled = NULL;
+
   /* write LibData */
   writestruct_at_address(wd, ID_TXT, Text, 1, id_address, text);
   write_iddata(wd, &text->id);



More information about the Bf-blender-cvs mailing list