diff options
author | Ray Molenkamp <github@lazydodo.com> | 2020-08-28 19:03:52 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2020-08-28 19:03:52 +0300 |
commit | 79e82dbc0574abe97f7316dc23441472594a3f57 (patch) | |
tree | 66a4bd46e9ef4d71691e604a08de7becbc8e95fc /source | |
parent | 7844486e476d96e401a45a00206955a66c671a20 (diff) |
cleanup: Fix style issue in sculpt.c
At first sight this code should not build at all
but due to the use of macro's that look like functions
this seemingly has no issues building.
Clang-format alerted me to this strange bit of code
by placing the `if` on it's own line for some reason.
added the missing brackets, and clang-format is happy
again.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index f8cd7dfe262..7a066f35f23 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -6634,12 +6634,12 @@ static float sculpt_brush_dynamic_size_get(Brush *brush, StrokeCache *cache, flo * generally used to create grab deformations. */ static bool sculpt_needs_delta_from_anchored_origin(Brush *brush) { - if ELEM (brush->sculpt_tool, + if (ELEM(brush->sculpt_tool, SCULPT_TOOL_GRAB, SCULPT_TOOL_POSE, SCULPT_TOOL_BOUNDARY, SCULPT_TOOL_THUMB, - SCULPT_TOOL_ELASTIC_DEFORM) { + SCULPT_TOOL_ELASTIC_DEFORM)) { return true; } if (brush->sculpt_tool == SCULPT_TOOL_CLOTH && |