diff options
author | Bastien Montagne <b.mont29@gmail.com> | 2020-04-01 11:18:39 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2020-04-01 13:39:06 +0300 |
commit | 33a622cbf4c50d1cf0390601f755cafa78867d52 (patch) | |
tree | c9c2723580ad8c909613ca36466004f9fca6ec98 /source/blender | |
parent | e790aa1f19ebed6d8135d8cc71003f490cbc219e (diff) |
Writefile: Cleanup VFont runtime data.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 4307d3c076f..75e15525ede 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -1972,6 +1972,10 @@ static void write_object(WriteData *wd, Object *ob, const void *id_address) static void write_vfont(WriteData *wd, VFont *vf, const void *id_address) { if (vf->id.us > 0 || wd->use_memfile) { + /* Clean up, important in undo case to reduce false detection of changed datablocks. */ + vf->data = NULL; + vf->temp_pf = NULL; + /* write LibData */ writestruct_at_address(wd, ID_VF, VFont, 1, id_address, vf); write_iddata(wd, &vf->id); |