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>2020-09-19 09:01:32 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-09-19 09:28:17 +0300
commit14b2a35c8bfd6d77f6357f929ddd82845436725f (patch)
tree54746d6a3cf0da24b95d2a9761e6222656eb5249 /source/blender/editors/gpencil
parent17a2820da8ad8ea23d336129f32e060e5746b047 (diff)
Cleanup: use parenthesis for if statements in macros
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_intern.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/editors/gpencil/gpencil_intern.h b/source/blender/editors/gpencil/gpencil_intern.h
index e6fdbf1ad17..f45321b6b20 100644
--- a/source/blender/editors/gpencil/gpencil_intern.h
+++ b/source/blender/editors/gpencil/gpencil_intern.h
@@ -670,11 +670,13 @@ struct GP_EditableStrokes_Iter {
for (bGPDstroke *gps = gpf_->strokes.first; gps; gps = gpsn_) { \
gpsn_ = gps->next; \
/* skip strokes that are invalid for current view */ \
- if (ED_gpencil_stroke_can_use(C, gps) == false) \
+ if (ED_gpencil_stroke_can_use(C, gps) == false) { \
continue; \
+ } \
/* check if the color is editable */ \
- if (ED_gpencil_stroke_color_use(obact_, gpl, gps) == false) \
+ if (ED_gpencil_stroke_color_use(obact_, gpl, gps) == false) { \
continue; \
+ } \
/* ... Do Stuff With Strokes ... */
#define GP_EDITABLE_STROKES_END(gpstroke_iter) \
@@ -717,11 +719,13 @@ struct GP_EditableStrokes_Iter {
/* loop over strokes */ \
LISTBASE_FOREACH (bGPDstroke *, gps, &gpf_->strokes) { \
/* skip strokes that are invalid for current view */ \
- if (ED_gpencil_stroke_can_use(C, gps) == false) \
+ if (ED_gpencil_stroke_can_use(C, gps) == false) { \
continue; \
+ } \
/* check if the color is editable */ \
- if (ED_gpencil_stroke_color_use(obact_, gpl, gps) == false) \
+ if (ED_gpencil_stroke_color_use(obact_, gpl, gps) == false) { \
continue; \
+ } \
/* ... Do Stuff With Strokes ... */
#define GP_EVALUATED_STROKES_END(gpstroke_iter) \