[Bf-blender-cvs] [36528704831] master: GPencil: Cleanup unneeded check

Antonio Vazquez noreply at git.blender.org
Fri Mar 13 11:43:31 CET 2020


Commit: 36528704831936b5a73a2d7157665bdc85f1c704
Author: Antonio Vazquez
Date:   Fri Mar 13 11:16:02 2020 +0100
Branches: master
https://developer.blender.org/rB36528704831936b5a73a2d7157665bdc85f1c704

GPencil: Cleanup unneeded check

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

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

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

diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpenciltint.c b/source/blender/gpencil_modifiers/intern/MOD_gpenciltint.c
index 2b5a5192b4e..6aaa37d494b 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpenciltint.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpenciltint.c
@@ -143,7 +143,7 @@ static void deformStroke(GpencilModifierData *md,
     return;
   }
   MaterialGPencilStyle *gp_style = BKE_gpencil_material_settings(ob, gps->mat_nr + 1);
-  const bool is_gradient = (mmd->type == GP_TINT_GRADIENT) != 0;
+  const bool is_gradient = (mmd->type == GP_TINT_GRADIENT);
 
   /* If factor > 1.0, affect the strength of the stroke. */
   if (mmd->factor > 1.0f) {



More information about the Bf-blender-cvs mailing list