diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-10-20 06:16:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-10-20 06:16:47 +0300 |
commit | c4668b72e073a66ac09aa02622b7d25f1339fcdb (patch) | |
tree | fc66ddd38da3948d8e26e00b519876e122a732c3 /source/blender/editors/gpencil/gpencil_edit.c | |
parent | 74d1fba1de66362a9365c907ce75881ee2cb2fca (diff) |
Cleanup: use BLI_listbase_is_single instead of counting
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_edit.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c index fa7fe27635a..d54bdf552eb 100644 --- a/source/blender/editors/gpencil/gpencil_edit.c +++ b/source/blender/editors/gpencil/gpencil_edit.c @@ -4284,7 +4284,7 @@ static int gpencil_stroke_separate_exec(bContext *C, wmOperator *op) return OPERATOR_CANCELLED; } - if ((mode == GP_SEPARATE_LAYER) && (BLI_listbase_count(&gpd_src->layers) == 1)) { + if ((mode == GP_SEPARATE_LAYER) && (BLI_listbase_is_single(&gpd_src->layers))) { BKE_report(op->reports, RPT_ERROR, "Cannot separate an object with one layer only"); return OPERATOR_CANCELLED; } |