GPencil: Fix wrong pt->runtime error in Subdivide
authorAntonioya <blendergit@gmail.com>
Wed, 8 May 2019 18:33:14 +0000 (20:33 +0200)
committerAntonioya <blendergit@gmail.com>
Wed, 8 May 2019 18:33:14 +0000 (20:33 +0200)
source/blender/blenkernel/intern/gpencil_modifier.c

index e5e3418..f0bcceb 100644 (file)
@@ -804,6 +804,7 @@ void BKE_gpencil_subdivide(bGPDstroke *gps, int level, int flag)
       pt_final->strength = interpf(pt->strength, next->strength, 0.5f);
       CLAMP(pt_final->strength, GPENCIL_STRENGTH_MIN, 1.0f);
       pt_final->time = interpf(pt->time, next->time, 0.5f);
+      pt_final->runtime.pt_orig = NULL;
 
       if (gps->dvert != NULL) {
         dvert = &temp_dverts[i];