diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-21 06:00:21 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-21 06:00:40 +0300 |
commit | 87b62839187ef2077728985d0b6d3af02e628f0a (patch) | |
tree | 17e002fdf211a591bb4db0142abe3c59fe13e3a5 /source/blender/editors/gpencil | |
parent | bf13a4d3ff2a8b91d8da030e3b52b7185fc0c1c0 (diff) |
Cleanup: remove redundant NULL checks
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_sculpt_paint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_sculpt_paint.c b/source/blender/editors/gpencil/gpencil_sculpt_paint.c index 9666aca5254..2b8800e5136 100644 --- a/source/blender/editors/gpencil/gpencil_sculpt_paint.c +++ b/source/blender/editors/gpencil/gpencil_sculpt_paint.c @@ -1012,7 +1012,7 @@ static void gpencil_brush_clone_add(bContext *C, tGP_BrushEditData *gso) bGPDlayer *gpl = NULL; /* Try to use original layer. */ - if (gps->runtime.tmp_layerinfo != NULL) { + if (gps->runtime.tmp_layerinfo[0] != '\0') { gpl = BKE_gpencil_layer_named_get(gpd, gps->runtime.tmp_layerinfo); } |