Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_mask.c
| Show First 20 Lines • Show All 175 Lines • ▼ Show 20 Lines | if (mmd->mode == MOD_MASK_MODE_ARM) { /* --- using selected bones --- */ | ||||
| */ | */ | ||||
| for (i = 0, dv = dvert; i < maxVerts; i++, dv++) { | for (i = 0, dv = dvert; i < maxVerts; i++, dv++) { | ||||
| MDeformWeight *dw = dv->dw; | MDeformWeight *dw = dv->dw; | ||||
| bool found = false; | bool found = false; | ||||
| int j; | int j; | ||||
| /* check the groups that vertex is assigned to, and see if it was any use */ | /* check the groups that vertex is assigned to, and see if it was any use */ | ||||
| for (j = 0; j < dv->totweight; j++, dw++) { | for (j = 0; j < dv->totweight; j++, dw++) { | ||||
| if (dw->def_nr < defbase_tot) { | if (dw->def_nr < (uint)defbase_tot) { | ||||
| if (bone_select_array[dw->def_nr]) { | if (bone_select_array[dw->def_nr]) { | ||||
| if (dw->weight != 0.0f) { | if (dw->weight != 0.0f) { | ||||
| found = true; | found = true; | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 201 Lines • Show Last 20 Lines | |||||