diff options
author | Antonioya <blendergit@gmail.com> | 2018-11-11 16:31:23 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-11-11 16:31:23 +0300 |
commit | 2fdd80ba1dab682c93cf03d16013947ca19a5725 (patch) | |
tree | 06dacf689e3403dc8663bb1257f659edd4dc973d /source/blender/editors/gpencil/gpencil_edit.c | |
parent | fd65ebf39a708fb57b8fe3ebbe14111380849f97 (diff) |
GP: Use same name when duplicate datablock
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 c988a541c42..655b0bd6007 100644 --- a/source/blender/editors/gpencil/gpencil_edit.c +++ b/source/blender/editors/gpencil/gpencil_edit.c @@ -3301,7 +3301,7 @@ static int gp_stroke_separate_exec(bContext *C, wmOperator *op) /* create new grease pencil datablock */ // XXX: check usercounts - gpd_dst = BKE_gpencil_data_addnew(bmain, "GPencil"); + gpd_dst = BKE_gpencil_data_addnew(bmain, gpd_src->id.name + 2); ob_dst->data = (bGPdata *)gpd_dst; int totslots = ob_dst->totcol; |