wmd->cmap_curve = curvemapping_add(1, 0.0, 0.0, 1.0, 1.0);
curvemapping_initialize(wmd->cmap_curve);
- wmd->clamp_min_weight = 0.0f;
- wmd->clamp_max_weight = 1.0f;
+ wmd->clamp_weight_min = 0.0f;
+ wmd->clamp_weight_max = 1.0f;
wmd->add_threshold = 0.01f;
wmd->rem_threshold = 0.01f;
twmd->map_new_max = wmd->map_new_max;
twmd->cmap_curve = curvemapping_copy(wmd->cmap_curve);
- twmd->clamp_min_weight = wmd->clamp_min_weight;
- twmd->clamp_max_weight = wmd->clamp_max_weight;
+ twmd->clamp_weight_min = wmd->clamp_weight_min;
+ twmd->clamp_weight_max = wmd->clamp_weight_max;
twmd->add_threshold = wmd->add_threshold;
twmd->rem_threshold = wmd->rem_threshold;
{
WeightVGEditModifierData *wmd = (WeightVGEditModifierData*) md;
DerivedMesh *dm = derivedData, *ret = NULL;
+#if 0
Mesh *ob_m = NULL;
+#endif
MDeformVert *dvert = NULL;
float *org_w = NULL; /* Array original weights. */
float *new_w = NULL; /* Array new weights. */
/* Do clamping. */
if (do_clamp) {
for (i = 0; i < numVerts; i++)
- CLAMP(org_w[i], wmd->clamp_min_weight, wmd->clamp_max_weight);
+ CLAMP(org_w[i], wmd->clamp_weight_min, wmd->clamp_weight_max);
}
/* Update/add/remove from vgroup. */
/* structSize */ sizeof(WeightVGEditModifierData),
/* type */ eModifierTypeType_Nonconstructive,
/* flags */ eModifierTypeFlag_AcceptsMesh
- |eModifierTypeFlag_SupportsMapping
+/* |eModifierTypeFlag_SupportsMapping*/
|eModifierTypeFlag_SupportsEditmode,
/* copyData */ copyData,