Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2018-07-31 13:44:01 +0300
committerAntonioya <blendergit@gmail.com>2018-07-31 13:44:01 +0300
commitf945303877e65999fbae7a37ba5a223367259396 (patch)
treeac73eb0ae280ea8616372fa77cc232ba0afbc534 /source/blender/gpencil_modifiers/intern/MOD_gpencilopacity.c
parent0b85bb847c06b2115f135f82bce7bd762354acd4 (diff)
Cleanup: Fix weird comparisons
Diffstat (limited to 'source/blender/gpencil_modifiers/intern/MOD_gpencilopacity.c')
-rw-r--r--source/blender/gpencil_modifiers/intern/MOD_gpencilopacity.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilopacity.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilopacity.c
index 361668f8725..74b24acdfb6 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencilopacity.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilopacity.c
@@ -101,7 +101,7 @@ static void deformStroke(
MDeformVert *dvert = &gps->dvert[i];
/* verify vertex group */
- float weight = get_modifier_point_weight(dvert, (!(mmd->flag & GP_OPACITY_INVERT_VGROUP) == 0), vindex);
+ float weight = get_modifier_point_weight(dvert, ((mmd->flag & GP_OPACITY_INVERT_VGROUP) != 0), vindex);
if (weight < 0) {
pt->strength += mmd->factor - 1.0f;
}
@@ -121,7 +121,7 @@ static void deformStroke(
pt->strength *= mmd->factor;
}
else {
- float weight = get_modifier_point_weight(dvert, (!(mmd->flag & GP_OPACITY_INVERT_VGROUP) == 0), vindex);
+ float weight = get_modifier_point_weight(dvert, ((mmd->flag & GP_OPACITY_INVERT_VGROUP) != 0), vindex);
if (weight >= 0) {
pt->strength *= mmd->factor * weight;
}