diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-04-05 06:53:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-04-05 06:53:32 +0300 |
commit | 9fe0505db00f450333518238db6813ede046f45e (patch) | |
tree | f8d3feec11659a545aac2b419a223120dfafea1d /source/blender/makesdna/DNA_mesh_types.h | |
parent | 93806ba82b30683f3e459f0c77ea9b162e1287ec (diff) |
Cleanup: macro hygiene, parenthesize arguments
Diffstat (limited to 'source/blender/makesdna/DNA_mesh_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_mesh_types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_mesh_types.h b/source/blender/makesdna/DNA_mesh_types.h index d8acf5bc493..dc1a2b5ff1d 100644 --- a/source/blender/makesdna/DNA_mesh_types.h +++ b/source/blender/makesdna/DNA_mesh_types.h @@ -248,9 +248,9 @@ enum { /* we cant have both flags enabled at once, * flags defined in DNA_scene_types.h */ #define ME_EDIT_PAINT_SEL_MODE(_me) \ - ((_me->editflag & ME_EDIT_PAINT_FACE_SEL) ? \ + (((_me)->editflag & ME_EDIT_PAINT_FACE_SEL) ? \ SCE_SELECT_FACE : \ - (_me->editflag & ME_EDIT_PAINT_VERT_SEL) ? SCE_SELECT_VERTEX : 0) + ((_me)->editflag & ME_EDIT_PAINT_VERT_SEL) ? SCE_SELECT_VERTEX : 0) /* me->flag */ enum { |