Commit: 6f0408f79dc9209778d01756ba61fd05ccfccceb
Author: Campbell Barton
Date:   Mon Apr 16 19:00:43 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rB6f0408f79dc9209778d01756ba61fd05ccfccceb

Cleanup: -Wparentheses & line length

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

M       source/blender/makesdna/DNA_gpencil_types.h

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

diff --git a/source/blender/makesdna/DNA_gpencil_types.h 
b/source/blender/makesdna/DNA_gpencil_types.h
index 68e524d91d7..a1d1c43aa9c 100644
--- a/source/blender/makesdna/DNA_gpencil_types.h
+++ b/source/blender/makesdna/DNA_gpencil_types.h
@@ -481,14 +481,26 @@ typedef enum eGP_DepthOrdering {
 #define GPENCIL_SKETCH_SESSIONS_ON(scene) 
((scene)->toolsettings->gpencil_flags & GP_TOOL_FLAG_PAINTSESSIONS_ON)
 
 /* Check if 'multiedit sessions' is enabled */
-#define GPENCIL_MULTIEDIT_SESSIONS_ON(gpd) ((gpd) && (gpd->flag & 
(GP_DATA_STROKE_EDITMODE | GP_DATA_STROKE_SCULPTMODE | 
GP_DATA_STROKE_WEIGHTMODE)) && (gpd->flag & GP_DATA_STROKE_MULTIEDIT)) 
+#define GPENCIL_MULTIEDIT_SESSIONS_ON(gpd) \
+       ((gpd) && (gpd->flag & \
+                  (GP_DATA_STROKE_EDITMODE | GP_DATA_STROKE_SCULPTMODE | 
GP_DATA_STROKE_WEIGHTMODE)) && \
+        (gpd->flag & GP_DATA_STROKE_MULTIEDIT))
 
 /* Macros to check grease pencil modes */
-#define GPENCIL_ANY_MODE(gpd) ((gpd) && (gpd->flag & (GP_DATA_STROKE_PAINTMODE 
| GP_DATA_STROKE_EDITMODE | GP_DATA_STROKE_SCULPTMODE | 
GP_DATA_STROKE_WEIGHTMODE))) 
-#define GPENCIL_ANY_EDIT_MODE(gpd) ((gpd) && (gpd->flag & 
(GP_DATA_STROKE_EDITMODE | GP_DATA_STROKE_SCULPTMODE | 
GP_DATA_STROKE_WEIGHTMODE))) 
-#define GPENCIL_PAINT_MODE(gpd) ((gpd) && (gpd->flag & 
(GP_DATA_STROKE_PAINTMODE))) 
-#define GPENCIL_SCULPT_OR_WEIGHT_MODE(gpd) ((gpd) && (gpd->flag & 
(GP_DATA_STROKE_SCULPTMODE | GP_DATA_STROKE_WEIGHTMODE))) 
-#define GPENCIL_NONE_EDIT_MODE(gpd) ((gpd) && ((gpd->flag & 
(GP_DATA_STROKE_EDITMODE | GP_DATA_STROKE_SCULPTMODE | 
GP_DATA_STROKE_WEIGHTMODE)) == 0))
-#define GPENCIL_LAZY_MODE(brush, shift) ((brush) && ((brush->gp_flag & 
GP_BRUSH_STABILIZE_MOUSE) && (shift == 0)) || (((brush->gp_flag & 
GP_BRUSH_STABILIZE_MOUSE) == 0) && (shift == 1))) 
+#define GPENCIL_ANY_MODE(gpd) \
+       ((gpd) && (gpd->flag & \
+                  (GP_DATA_STROKE_PAINTMODE | GP_DATA_STROKE_EDITMODE | \
+                   GP_DATA_STROKE_SCULPTMODE | GP_DATA_STROKE_WEIGHTMODE)))
+#define GPENCIL_ANY_EDIT_MODE(gpd) \
+       ((gpd) && (gpd->flag & (GP_DATA_STROKE_EDITMODE | 
GP_DATA_STROKE_SCULPTMODE | GP_DATA_STROKE_WEIGHTMODE)))
+#define GPENCIL_PAINT_MODE(gpd) \
+       ((gpd) && (gpd->flag & (GP_DATA_STROKE_PAINTMODE)))
+#define GPENCIL_SCULPT_OR_WEIGHT_MODE(gpd) \
+       ((gpd) && (gpd->flag & (GP_DATA_STROKE_SCULPTMODE | 
GP_DATA_STROKE_WEIGHTMODE)))
+#define GPENCIL_NONE_EDIT_MODE(gpd) \
+       ((gpd) && ((gpd->flag & (GP_DATA_STROKE_EDITMODE | 
GP_DATA_STROKE_SCULPTMODE | GP_DATA_STROKE_WEIGHTMODE)) == 0))
+#define GPENCIL_LAZY_MODE(brush, shift) \
+       (((brush) && ((brush->gp_flag & GP_BRUSH_STABILIZE_MOUSE) && (shift == 
0))) || \
+        (((brush->gp_flag & GP_BRUSH_STABILIZE_MOUSE) == 0) && (shift == 1)))
 
 #endif /*  __DNA_GPENCIL_TYPES_H__ */

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to