forked from bartvdbraak/blender
uninitialized variable was used when ensuring mirrored vertex groups.
This commit is contained in:
parent
81982140b8
commit
22ca037c58
@ -1668,7 +1668,7 @@ int ui_set_but_string(bContext *C, uiBut *but, const char *str)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ui_set_but_default(bContext *C, uiBut *but, short all)
|
||||
void ui_set_but_default(bContext *C, uiBut *UNUSED(but), short all)
|
||||
{
|
||||
PointerRNA ptr;
|
||||
|
||||
|
@ -301,7 +301,7 @@ static void wpaint_mirror_vgroup_ensure(Object *ob, int *vgroup_mirror)
|
||||
flip_side_name(name, defgroup->name, FALSE);
|
||||
|
||||
if(strcmp(name, defgroup->name) != 0) {
|
||||
for (curdef= ob->defbase.first, mirrdef; curdef; curdef=curdef->next, mirrdef++) {
|
||||
for (curdef= ob->defbase.first, mirrdef= 0; curdef; curdef=curdef->next, mirrdef++) {
|
||||
if (!strcmp(curdef->name, name)) {
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user