diff options
author | Bastien Montagne <b.mont29@gmail.com> | 2020-04-01 11:38:20 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2020-04-01 13:39:06 +0300 |
commit | 4f509db181f6a73383180f0fa19239b8deb46d9c (patch) | |
tree | eeca7406fe8e3522776e3b887fb1eb5978444c35 /source/blender/blenloader | |
parent | 33a622cbf4c50d1cf0390601f755cafa78867d52 (diff) |
Writefile: Cleanup Text runtime data.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 3 |
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); |