diff options
author | Bastien Montagne <b.mont29@gmail.com> | 2020-04-01 10:56:29 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2020-04-01 13:39:06 +0300 |
commit | 80280acc938204dedd654502bb109c541f78a302 (patch) | |
tree | 5da29b2d5f5c8ef4ce56b47899aaa8f08ac2a9ad | |
parent | ca0dcd830c5e880b9ea25d4b95a581b2aaeef4e4 (diff) |
Writefile: Cleanup Curve runtime data.
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 1ca8e7d5ade..3a34b8a87eb 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -2041,6 +2041,11 @@ static void write_mball(WriteData *wd, MetaBall *mb, const void *id_address) static void write_curve(WriteData *wd, Curve *cu, const void *id_address) { if (cu->id.us > 0 || wd->use_memfile) { + /* Clean up, important in udo case to reduce false detection of chaged datablocks. */ + cu->editnurb = NULL; + cu->editfont = NULL; + cu->batch_cache = NULL; + /* write LibData */ writestruct_at_address(wd, ID_CU, Curve, 1, id_address, cu); write_iddata(wd, &cu->id); |