[Bf-blender-cvs] [94ff0781527] temp-gpencil-bezier-stroke-type: GPencil: Bake Armature modifier for Bezier type

Antonio Vazquez noreply at git.blender.org
Thu Apr 8 15:31:15 CEST 2021


Commit: 94ff078152718984e51e07c2f8ad59498bcee3b1
Author: Antonio Vazquez
Date:   Thu Apr 8 15:31:11 2021 +0200
Branches: temp-gpencil-bezier-stroke-type
https://developer.blender.org/rB94ff078152718984e51e07c2f8ad59498bcee3b1

GPencil: Bake Armature modifier for Bezier type

===================================================================

M	source/blender/gpencil_modifiers/intern/MOD_gpencilarmature.c

===================================================================

diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilarmature.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilarmature.c
index 085b19192aa..763e1d0ddd5 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencilarmature.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilarmature.c
@@ -224,7 +224,12 @@ static void bakeModifier(Main *UNUSED(bmain),
 
       /* compute armature effects on this frame */
       LISTBASE_FOREACH (bGPDstroke *, gps, &gpf->strokes) {
-        deformPolyline(md_eval, depsgraph, object_eval, gpl, gpf, gps);
+        if (!GPENCIL_STROKE_TYPE_BEZIER(gps)) {
+          deformPolyline(md_eval, depsgraph, object_eval, gpl, gpf, gps);
+        }
+        else {
+          deformBezier(md_eval, depsgraph, object_eval, gpl, gpf, gps);
+        }
       }
     }
   }



More information about the Bf-blender-cvs mailing list