[Bf-blender-cvs] [2bff2a33b4e] greasepencil-object: Do not include object type in name for Brush enums

Antonio Vazquez noreply at git.blender.org
Tue Jul 10 16:36:01 CEST 2018


Commit: 2bff2a33b4e1eb28a16694f899c52dd1e9cbcaa7
Author: Antonio Vazquez
Date:   Tue Jul 10 16:35:51 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rB2bff2a33b4e1eb28a16694f899c52dd1e9cbcaa7

Do not include object type in name for Brush enums

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

M	source/blender/makesrna/intern/rna_brush.c

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

diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c
index bc3ca43b537..8401843d19a 100644
--- a/source/blender/makesrna/intern/rna_brush.c
+++ b/source/blender/makesrna/intern/rna_brush.c
@@ -495,8 +495,8 @@ static const EnumPropertyItem *rna_DynamicGpencil_type_itemf(
 		if (brush->gpencil_settings == NULL)
 			continue;
 
-		item_tmp.identifier = brush->id.name;
-		item_tmp.name = brush->id.name;
+		item_tmp.identifier = brush->id.name + 2;
+		item_tmp.name = brush->id.name + 2;
 		item_tmp.value = i;
 		item_tmp.icon = brush->gpencil_settings->icon_id;



More information about the Bf-blender-cvs mailing list