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>2019-03-12 00:21:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-12 00:21:13 +0300
commitfd76b8d8253fe883c3a421862e1efc497954308e (patch)
treed7482dd5fb5dd48ac6375a9e9abdf76102425fb0 /source/blender/editors/gpencil/annotate_paint.c
parent815a9df70cf1ed1a3dfd7c26869354b07de34404 (diff)
Cleanup: style
Diffstat (limited to 'source/blender/editors/gpencil/annotate_paint.c')
-rw-r--r--source/blender/editors/gpencil/annotate_paint.c5
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;