[Bf-blender-cvs] [6ac5e0b3e85] master: GPencil: Missing initialization in previous commit
Antonio Vazquez
noreply at git.blender.org
Sat Nov 14 15:21:27 CET 2020
Commit: 6ac5e0b3e852a93803abfb0d36886f95aaa23e8e
Author: Antonio Vazquez
Date: Sat Nov 14 15:21:20 2020 +0100
Branches: master
https://developer.blender.org/rB6ac5e0b3e852a93803abfb0d36886f95aaa23e8e
GPencil: Missing initialization in previous commit
===================================================================
M source/blender/blenkernel/intern/gpencil.c
===================================================================
diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c
index 46c4e0d396b..98e83bfb789 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -942,6 +942,9 @@ bGPDstroke *BKE_gpencil_stroke_duplicate(bGPDstroke *gps_src,
if (dup_curve && gps_src->editcurve != NULL) {
gps_dst->editcurve = BKE_gpencil_stroke_curve_duplicate(gps_src->editcurve);
}
+ else {
+ gps_dst->editcurve = NULL;
+ }
/* return new stroke */
return gps_dst;
More information about the Bf-blender-cvs
mailing list