diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-12 00:21:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-12 00:21:13 +0300 |
commit | fd76b8d8253fe883c3a421862e1efc497954308e (patch) | |
tree | d7482dd5fb5dd48ac6375a9e9abdf76102425fb0 /source/blender/editors/gpencil/annotate_paint.c | |
parent | 815a9df70cf1ed1a3dfd7c26869354b07de34404 (diff) |
Cleanup: style
Diffstat (limited to 'source/blender/editors/gpencil/annotate_paint.c')
-rw-r--r-- | source/blender/editors/gpencil/annotate_paint.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/annotate_paint.c b/source/blender/editors/gpencil/annotate_paint.c index 1c2ad3d2a95..1bc860d4785 100644 --- a/source/blender/editors/gpencil/annotate_paint.c +++ b/source/blender/editors/gpencil/annotate_paint.c @@ -223,8 +223,9 @@ static bool gpencil_draw_poll(bContext *C) Object *obact = CTX_data_active_object(C); ScrArea *sa = CTX_wm_area(C); if ((sa) && (sa->spacetype == SPACE_VIEW3D)) { - if ((obact) && (obact->type == OB_GPENCIL) - && (obact->mode == OB_MODE_PAINT_GPENCIL)) { + if ((obact) && (obact->type == OB_GPENCIL) && + (obact->mode == OB_MODE_PAINT_GPENCIL)) + { CTX_wm_operator_poll_msg_set(C, "Annotation cannot be used in grease pencil draw mode"); return false; |