[Bf-blender-cvs] [18889909345] master: Cleanup: Remove redundant name checking

Antonio Vazquez noreply at git.blender.org
Thu Sep 19 11:24:10 CEST 2019


Commit: 18889909345f62f2a12e7832d6faba05954e16e6
Author: Antonio Vazquez
Date:   Thu Sep 19 11:23:57 2019 +0200
Branches: master
https://developer.blender.org/rB18889909345f62f2a12e7832d6faba05954e16e6

Cleanup: Remove redundant name checking

The BKE function already does this checking.

===================================================================

M	source/blender/editors/gpencil/gpencil_data.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list