Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_weightvg_util.c
| Context not available. | |||||
| for (i = 0; i < num; i++) { | for (i = 0; i < num; i++) { | ||||
| int idx = indices ? indices[i] : i; | int idx = indices ? indices[i] : i; | ||||
| const float f = invert_vgroup_mask ? | const float f = invert_vgroup_mask ? | ||||
| 1.0f - BKE_defvert_find_weight(&dvert[idx], ref_didx) * fact : | (1.0f - BKE_defvert_find_weight(&dvert[idx], ref_didx)) * fact : | ||||
| BKE_defvert_find_weight(&dvert[idx], ref_didx) * fact; | BKE_defvert_find_weight(&dvert[idx], ref_didx) * fact; | ||||
| org_w[i] = (new_w[i] * f) + (org_w[i] * (1.0f - f)); | org_w[i] = (new_w[i] * f) + (org_w[i] * (1.0f - f)); | ||||
| /* If that vertex is not in ref vgroup, assume null factor, and hence do nothing! */ | /* If that vertex is not in ref vgroup, assume null factor, and hence do nothing! */ | ||||
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| No newline at end of file | |||||
| Context not available. | |||||