[Bf-blender-cvs] [c17b4b7f679] greasepencil-object: GPencil: Fix if mistake in previous commit

Antonio Vazquez noreply at git.blender.org
Tue Nov 5 20:01:44 CET 2019


Commit: c17b4b7f6790be399e61ade2489a27a5ae1f76e9
Author: Antonio Vazquez
Date:   Tue Nov 5 20:01:36 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rBc17b4b7f6790be399e61ade2489a27a5ae1f76e9

GPencil: Fix if mistake in previous commit

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

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

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

diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilvertexcolor.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilvertexcolor.c
index 46748b72468..cd5f3a6a8d2 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencilvertexcolor.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilvertexcolor.c
@@ -154,10 +154,10 @@ static void deformStroke(GpencilModifierData *md,
         BKE_colorband_evaluate(mmd->colorband, 1.0f, coba_res);
         interp_v3_v3v3(gps->mix_color_fill, gps->mix_color_fill, coba_res, mmd->factor);
         gps->mix_color_fill[3] = mmd->factor;
-      }
-      /* If no stroke, cancel loop. */
-      if (mmd->mode != GPPAINT_MODE_BOTH) {
-        break;
+        /* If no stroke, cancel loop. */
+        if (mmd->mode != GPPAINT_MODE_BOTH) {
+          break;
+        }
       }
 
       doit = true;



More information about the Bf-blender-cvs mailing list