Commit: 80280acc938204dedd654502bb109c541f78a302
Author: Bastien Montagne
Date: Wed Apr 1 09:56:29 2020 +0200
Branches: master
https://developer.blender.org/rB80280acc938204dedd654502bb109c541f78a302
Writefile: Cleanup Curve 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 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);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs