diff options
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_ops.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_ops.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/gpencil/gpencil_ops.c b/source/blender/editors/gpencil/gpencil_ops.c index e645668ef1c..efee05f7da3 100644 --- a/source/blender/editors/gpencil/gpencil_ops.c +++ b/source/blender/editors/gpencil/gpencil_ops.c @@ -184,10 +184,9 @@ static bool gpencil_stroke_sculptmode_poll(bContext *C) if (area->spacetype != SPACE_VIEW3D) { return ((gpd) && (gpd->flag & GP_DATA_STROKE_EDITMODE)); } - else { - if ((ob) && (ob->type == OB_GPENCIL)) { - return GPENCIL_SCULPT_MODE(gpd); - } + + if ((ob) && (ob->type == OB_GPENCIL)) { + return GPENCIL_SCULPT_MODE(gpd); } return 0; |