[Bf-blender-cvs] [33a622cbf4c] master: Writefile: Cleanup VFont runtime data.
Bastien Montagne
noreply at git.blender.org
Wed Apr 1 14:27:36 CEST 2020
Commit: 33a622cbf4c50d1cf0390601f755cafa78867d52
Author: Bastien Montagne
Date: Wed Apr 1 10:18:39 2020 +0200
Branches: master
https://developer.blender.org/rB33a622cbf4c50d1cf0390601f755cafa78867d52
Writefile: Cleanup VFont 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 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);
More information about the Bf-blender-cvs
mailing list