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:
authorCampbell Barton <ideasman42@gmail.com>2013-06-24 06:30:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-06-24 06:30:09 +0400
commit8ce83150a7fa3b0214e73c468abde70210c192b9 (patch)
tree3a66c2dba2605b01bf5a25b3f4ef43e117f26143 /source/blender
parent8acdc0515db613cb8dbeaa3152472fd61559bde5 (diff)
remove unused var in view3d_panel_vgroup
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/space_view3d/view3d_buttons.c23
1 files changed, 8 insertions, 15 deletions
diff --git a/source/blender/editors/space_view3d/view3d_buttons.c b/source/blender/editors/space_view3d/view3d_buttons.c
index 603b8a377b3..9fe9c6273c9 100644
--- a/source/blender/editors/space_view3d/view3d_buttons.c
+++ b/source/blender/editors/space_view3d/view3d_buttons.c
@@ -883,7 +883,6 @@ static void view3d_panel_vgroup(const bContext *C, Panel *pa)
uiLayout *col, *bcol;
uiLayout *row;
- uiLayout *box;
uiBut *but;
bDeformGroup *dg;
unsigned int i;
@@ -901,9 +900,7 @@ static void view3d_panel_vgroup(const bContext *C, Panel *pa)
uiItemR(row, &tools_ptr, "vertex_group_subset", UI_ITEM_R_EXPAND, NULL, ICON_NONE);
col = uiLayoutColumn(bcol, true);
- //box = uiLayoutBox(col); /* The list box */
- //col = uiLayoutColumn(box, true);
vgroup_validmap = ED_vgroup_subset_from_select_type(ob, subset_type, &vgroup_tot, &subset_count);
for (i = 0, dg = ob->defbase.first; dg; i++, dg = dg->next) {
if (vgroup_validmap[i]) {
@@ -912,8 +909,6 @@ static void view3d_panel_vgroup(const bContext *C, Panel *pa)
int x, xco = 0;
row = uiLayoutRow(col, true);
- //uiBlockSetEmboss(block, UI_EMBOSSN);
-
/* The Weight Group Name */
ot = ot_weight_set_active;
@@ -930,8 +925,8 @@ static void view3d_panel_vgroup(const bContext *C, Panel *pa)
/* The weight group value */
/* To be reworked still */
but = uiDefButF(block, NUM, B_VGRP_PNL_EDIT_SINGLE + i, "",
- xco, yco, (x = UI_UNIT_X * 4), UI_UNIT_Y,
- &dw->weight, 0.0, 1.0, 1, 3, "");
+ xco, yco, (x = UI_UNIT_X * 4), UI_UNIT_Y,
+ &dw->weight, 0.0, 1.0, 1, 3, "");
uiButSetFlag(but, UI_TEXT_LEFT);
xco += x;
@@ -956,22 +951,20 @@ static void view3d_panel_vgroup(const bContext *C, Panel *pa)
}
MEM_freeN((void *)vgroup_validmap);
- //uiBlockSetEmboss(block, UI_EMBOSS);
-
yco -= 2;
col = uiLayoutColumn(pa->layout, true);
row = uiLayoutRow(col, true);
ot = WM_operatortype_find("OBJECT_OT_vertex_weight_normalize_active", 1);
- but = uiDefButO_ptr(block, BUT, ot, WM_OP_EXEC_DEFAULT, "Normalize",
- 0, yco,UI_UNIT_X * 5, UI_UNIT_Y,
- TIP_("Normalize active vertex weights"));
+ but = uiDefButO_ptr(block, BUT, ot, WM_OP_EXEC_DEFAULT, "Normalize",
+ 0, yco,UI_UNIT_X * 5, UI_UNIT_Y,
+ TIP_("Normalize active vertex weights"));
ot = WM_operatortype_find("OBJECT_OT_vertex_weight_copy", 1);
- but = uiDefButO_ptr(block, BUT, ot, WM_OP_EXEC_DEFAULT, "Copy",
- UI_UNIT_X * 5, yco,UI_UNIT_X * 5, UI_UNIT_Y,
- TIP_("Copy active vertex to other selected verts"));
+ but = uiDefButO_ptr(block, BUT, ot, WM_OP_EXEC_DEFAULT, "Copy",
+ UI_UNIT_X * 5, yco,UI_UNIT_X * 5, UI_UNIT_Y,
+ TIP_("Copy active vertex to other selected verts"));
}
}