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:
authorCampbell Barton <ideasman42@gmail.com>2019-05-31 16:21:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-31 16:22:52 +0300
commitaba4e6810f8b4d0e459137b64e061a2cadc457d1 (patch)
tree2b6159c7ba0f23c020600b71276772fa4a882b5b /source/blender/modifiers
parent72a563cdee8fef198a200ff65b57ddb847c01795 (diff)
Cleanup: style, use braces in source/ (include disabled blocks)
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_screw.c6
-rw-r--r--source/blender/modifiers/intern/MOD_weightvgedit.c3
-rw-r--r--source/blender/modifiers/intern/MOD_weightvgmix.c9
-rw-r--r--source/blender/modifiers/intern/MOD_weightvgproximity.c3
4 files changed, 14 insertions, 7 deletions
diff --git a/source/blender/modifiers/intern/MOD_screw.c b/source/blender/modifiers/intern/MOD_screw.c
index dd894e86dcc..79f7e52681b 100644
--- a/source/blender/modifiers/intern/MOD_screw.c
+++ b/source/blender/modifiers/intern/MOD_screw.c
@@ -322,8 +322,9 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes
cross_v3_v3v3(axis_tmp, cross1, c2);
normalize_v3(axis_tmp);
- if (len_v3v3(axis_tmp, axis_vec) > 1.0f)
+ if (len_v3v3(axis_tmp, axis_vec) > 1.0f) {
angle = -angle;
+ }
}
}
#endif
@@ -691,8 +692,9 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes
/* switch the flip option if set
* note: flip is now done at face level so copying vgroup slizes is easier */
#if 0
- if (do_flip)
+ if (do_flip) {
ed_loop_flip = !ed_loop_flip;
+ }
#endif
if (angle < 0.0f) {
diff --git a/source/blender/modifiers/intern/MOD_weightvgedit.c b/source/blender/modifiers/intern/MOD_weightvgedit.c
index 7e49af4f3bf..207c5851602 100644
--- a/source/blender/modifiers/intern/MOD_weightvgedit.c
+++ b/source/blender/modifiers/intern/MOD_weightvgedit.c
@@ -275,8 +275,9 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes
/* If weight preview enabled... */
#if 0 /* XXX Currently done in mod stack :/ */
- if (do_prev)
+ if (do_prev) {
DM_update_weight_mcol(ob, dm, 0, org_w, 0, NULL);
+ }
#endif
/* Freeing stuff. */
diff --git a/source/blender/modifiers/intern/MOD_weightvgmix.c b/source/blender/modifiers/intern/MOD_weightvgmix.c
index e509d1464f2..368a6b46c7e 100644
--- a/source/blender/modifiers/intern/MOD_weightvgmix.c
+++ b/source/blender/modifiers/intern/MOD_weightvgmix.c
@@ -64,10 +64,12 @@ static float mix_weight(float weight, float weight2, char mix_mode)
return (weight * weight2);
case MOD_WVG_MIX_DIV:
/* Avoid dividing by zero (or really small values). */
- if (0.0 <= weight2 < MOD_WVG_ZEROFLOOR)
+ if (0.0 <= weight2 < MOD_WVG_ZEROFLOOR) {
weight2 = MOD_WVG_ZEROFLOOR;
- else if (-MOD_WVG_ZEROFLOOR < weight2)
+ }
+ else if (-MOD_WVG_ZEROFLOOR < weight2) {
weight2 = -MOD_WVG_ZEROFLOOR;
+ }
return (weight / weight2);
case MOD_WVG_MIX_DIF:
return (weight < weight2 ? weight2 - weight : weight - weight2);
@@ -401,8 +403,9 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes
/* If weight preview enabled... */
#if 0 /* XXX Currently done in mod stack :/ */
- if (do_prev)
+ if (do_prev) {
DM_update_weight_mcol(ob, dm, 0, org_w, numIdx, indices);
+ }
#endif
/* Freeing stuff. */
diff --git a/source/blender/modifiers/intern/MOD_weightvgproximity.c b/source/blender/modifiers/intern/MOD_weightvgproximity.c
index 9b3bc4678a1..37f25fd7c89 100644
--- a/source/blender/modifiers/intern/MOD_weightvgproximity.c
+++ b/source/blender/modifiers/intern/MOD_weightvgproximity.c
@@ -580,8 +580,9 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes
/* If weight preview enabled... */
#if 0 /* XXX Currently done in mod stack :/ */
- if (do_prev)
+ if (do_prev) {
DM_update_weight_mcol(ob, dm, 0, org_w, numIdx, indices);
+ }
#endif
/* Freeing stuff. */