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:
authorBastien Montagne <b.mont29@gmail.com>2020-04-01 11:38:20 +0300
committerBastien Montagne <b.mont29@gmail.com>2020-04-01 13:39:06 +0300
commit4f509db181f6a73383180f0fa19239b8deb46d9c (patch)
treeeeca7406fe8e3522776e3b887fb1eb5978444c35
parent33a622cbf4c50d1cf0390601f755cafa78867d52 (diff)
Writefile: Cleanup Text runtime data.
-rw-r--r--source/blender/blenloader/intern/writefile.c3
1 files changed, 3 insertions, 0 deletions
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);