Commit: d0b1606c0ddcd4a89745b9fd4471e92a20cf312f
Author: Antonio Vazquez
Date: Fri Jun 5 15:42:27 2020 +0200
Branches: greasepencil-edit-curve
https://developer.blender.org/rBd0b1606c0ddcd4a89745b9fd4471e92a20cf312f
GPencil: Fix wrong write_struct code
This is going to be replaced by new code, but it's better keep the right one.
===================================================================
M source/blender/blenloader/intern/writefile.c
===================================================================
diff --git a/source/blender/blenloader/intern/writefile.c
b/source/blender/blenloader/intern/writefile.c
index 275f219edea..e7bae740e4f 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -2905,8 +2905,8 @@ static void write_gpencil(BlendWriter *writer, bGPdata
*gpd, const void *id_addr
/* write strokes */
BLO_write_struct_list(writer, bGPDstroke, &gpf->strokes);
LISTBASE_FOREACH (bGPDstroke *, gps, &gpf->strokes) {
- BLO_write_struct(writer, bGPDspoint, gps->points);
- BLO_write_struct(writer, bGPDtriangle, gps->triangles);
+ BLO_write_struct_array(writer, bGPDspoint, gps->totpoints,
gps->points);
+ BLO_write_struct_array(writer, bGPDtriangle, gps->tot_triangles,
gps->triangles);
write_dverts(writer->wd, gps->totpoints, gps->dvert);
}
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs