Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2019-09-19 12:23:57 +0300
committerAntonio Vazquez <blendergit@gmail.com>2019-09-19 12:23:57 +0300
commit18889909345f62f2a12e7832d6faba05954e16e6 (patch)
tree8863267f1fb624213449f1fa373963d0177ec82f /source/blender/editors/gpencil/gpencil_data.c
parent05de43d8436895f13142e4e02d3cd13d3a859ace (diff)
Cleanup: Remove redundant name checking
The BKE function already does this checking.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_data.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_data.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c
index 7753635a24c..a072b6c4cf9 100644
--- a/source/blender/editors/gpencil/gpencil_data.c
+++ b/source/blender/editors/gpencil/gpencil_data.c
@@ -505,12 +505,6 @@ static int gp_layer_duplicate_object_exec(bContext *C, wmOperator *op)
/* Create new layer. */
bGPDlayer *gpl_dst = BKE_gpencil_layer_addnew(gpd_dst, gpl_src->info, true);
- BLI_uniquename(&gpd_dst->layers,
- gpl_dst,
- DATA_("GP_Layer"),
- '.',
- offsetof(bGPDlayer, info),
- sizeof(gpl_dst->info));
/* Need to copy some variables (not all). */
gpl_dst->onion_flag = gpl_src->onion_flag;
gpl_dst->thickness = gpl_src->thickness;