[Bf-blender-cvs] [0b3603dcc1c] userpref_redesign: Remove colons in Preferences section group names
Julian Eisel
noreply at git.blender.org
Thu Dec 20 02:14:07 CET 2018
Commit: 0b3603dcc1cde4a0fce06f4615e3fc440cfbec1e
Author: Julian Eisel
Date: Thu Dec 20 01:54:18 2018 +0100
Branches: userpref_redesign
https://developer.blender.org/rB0b3603dcc1cde4a0fce06f4615e3fc440cfbec1e
Remove colons in Preferences section group names
===================================================================
M source/blender/editors/interface/interface_layout.c
===================================================================
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index 9e9c244cfaf..fd42eecc4cc 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -655,7 +655,6 @@ static void ui_item_enum_expand_exec(
uiLayout *layout_radial = NULL;
const EnumPropertyItem *item, *item_array;
const char *name;
- char group_name[UI_MAX_NAME_STR];
int itemw, icon, value;
bool free;
bool radial = (layout->root->type == UI_LAYOUT_PIEMENU);
@@ -700,8 +699,7 @@ static void ui_item_enum_expand_exec(
if (!is_first) {
uiItemS(block->curlayout);
}
- BLI_snprintf(group_name, sizeof(group_name), "%s:", item->name);
- uiItemL(block->curlayout, group_name, item->icon);
+ uiItemL(block->curlayout, item->name, item->icon);
}
else if (radial && layout_radial) {
uiItemS(layout_radial);
More information about the Bf-blender-cvs
mailing list