diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-26 02:15:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-26 02:15:36 +0300 |
commit | a750dea74e5278d24a800468bcf5f433d4a46bcf (patch) | |
tree | 9b0c055afed87d583db163c7ea945f99ff752be0 /source/blender/editors | |
parent | 82de58b3184daf939b39659bbe0cd53209a30b6e (diff) |
Cleanup: warnings, correct assert
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c index 259c9468e76..be63d5cd016 100644 --- a/source/blender/editors/gpencil/gpencil_edit.c +++ b/source/blender/editors/gpencil/gpencil_edit.c @@ -1329,7 +1329,7 @@ static int gp_strokes_paste_exec(bContext *C, wmOperator *op) /* Remap material */ Material *ma = BLI_ghash_lookup(new_colors, POINTER_FROM_INT(new_stroke->mat_nr)); new_stroke->mat_nr = BKE_gpencil_get_material_index(ob, ma); - BLI_assert(new_stroke >= 0); /* have to add the material first */ + BLI_assert(new_stroke->mat_nr >= 0); /* have to add the material first */ } } } @@ -3905,7 +3905,7 @@ static int gp_stroke_separate_exec(bContext *C, wmOperator *op) /* create new grease pencil datablock */ gpd_dst = BKE_gpencil_data_addnew(bmain, gpd_src->id.name + 2); ob_dst->data = (bGPdata *)gpd_dst; - + /* loop old datablock and separate parts */ if ((mode == GP_SEPARATE_POINT) || (mode == GP_SEPARATE_STROKE)) { CTX_DATA_BEGIN(C, bGPDlayer *, gpl, editable_gpencil_layers) |