[Bf-blender-cvs] [ec58cb0429d] greasepencil-object: Manage weights in simplify operator and modifier
Antonioya
noreply at git.blender.org
Thu Aug 23 10:34:14 CEST 2018
Commit: ec58cb0429df8dfd5ed9aaa32280df5b600b1a69
Author: Antonioya
Date: Mon Aug 20 14:12:21 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rBec58cb0429df8dfd5ed9aaa32280df5b600b1a69
Manage weights in simplify operator and modifier
===================================================================
M source/blender/blenkernel/intern/gpencil_modifier.c
===================================================================
diff --git a/source/blender/blenkernel/intern/gpencil_modifier.c b/source/blender/blenkernel/intern/gpencil_modifier.c
index d1c455f64e1..1527ef85781 100644
--- a/source/blender/blenkernel/intern/gpencil_modifier.c
+++ b/source/blender/blenkernel/intern/gpencil_modifier.c
@@ -308,6 +308,7 @@ void BKE_gpencil_simplify_fixed(bGPDstroke *gps)
if ((i == 0) || (i == gps->totpoints - 1) || ((i % 2) > 0.0)) {
memcpy(pt, pt_src, sizeof(bGPDspoint));
memcpy(dvert, dvert_src, sizeof(MDeformVert));
+ memcpy(dvert->dw, dvert_src->dw, sizeof(MDeformWeight));
j++;
}
else {
More information about the Bf-blender-cvs
mailing list