Undo revision 23130 which was a merge with 2.5, a messy one because I did something...
[blender.git] / source / blender / editors / armature / meshlaplacian.c
index a6c94be..1b16751 100644 (file)
@@ -672,9 +672,9 @@ void heat_bone_weighting(Object *ob, Mesh *me, float (*verts)[3], int numbones,
                /* clear weights */
                if(bbone && firstsegment) {
                        for(a=0; a<me->totvert; a++) {
-                               ED_vgroup_vert_remove(ob, dgrouplist[j], a);
+                               remove_vert_defgroup(ob, dgrouplist[j], a);
                                if(vertsflipped && dgroupflip[j] && vertsflipped[a] >= 0)
-                                       ED_vgroup_vert_remove(ob, dgroupflip[j], vertsflipped[a]);
+                                       remove_vert_defgroup(ob, dgroupflip[j], vertsflipped[a]);
                        }
                }
 
@@ -694,32 +694,32 @@ void heat_bone_weighting(Object *ob, Mesh *me, float (*verts)[3], int numbones,
                                
                                if(bbone) {
                                        if(solution > 0.0f)
-                                               ED_vgroup_vert_add(ob, dgrouplist[j], a, solution,
+                                               add_vert_to_defgroup(ob, dgrouplist[j], a, solution,
                                                        WEIGHT_ADD);
                                }
                                else {
                                        weight= heat_limit_weight(solution);
                                        if(weight > 0.0f)
-                                               ED_vgroup_vert_add(ob, dgrouplist[j], a, weight,
+                                               add_vert_to_defgroup(ob, dgrouplist[j], a, weight,
                                                        WEIGHT_REPLACE);
                                        else
-                                               ED_vgroup_vert_remove(ob, dgrouplist[j], a);
+                                               remove_vert_defgroup(ob, dgrouplist[j], a);
                                }
 
                                /* do same for mirror */
                                if(vertsflipped && dgroupflip[j] && vertsflipped[a] >= 0) {
                                        if(bbone) {
                                                if(solution > 0.0f)
-                                                       ED_vgroup_vert_add(ob, dgroupflip[j], vertsflipped[a],
+                                                       add_vert_to_defgroup(ob, dgroupflip[j], vertsflipped[a],
                                                                solution, WEIGHT_ADD);
                                        }
                                        else {
                                                weight= heat_limit_weight(solution);
                                                if(weight > 0.0f)
-                                                       ED_vgroup_vert_add(ob, dgroupflip[j], vertsflipped[a],
+                                                       add_vert_to_defgroup(ob, dgroupflip[j], vertsflipped[a],
                                                                weight, WEIGHT_REPLACE);
                                                else
-                                                       ED_vgroup_vert_remove(ob, dgroupflip[j], vertsflipped[a]);
+                                                       remove_vert_defgroup(ob, dgroupflip[j], vertsflipped[a]);
                                        }
                                }
                        }
@@ -734,16 +734,16 @@ void heat_bone_weighting(Object *ob, Mesh *me, float (*verts)[3], int numbones,
                /* remove too small vertex weights */
                if(bbone && lastsegment) {
                        for(a=0; a<me->totvert; a++) {
-                               weight= ED_vgroup_vert_weight(ob, dgrouplist[j], a);
+                               weight= get_vert_defgroup(ob, dgrouplist[j], a);
                                weight= heat_limit_weight(weight);
                                if(weight <= 0.0f)
-                                       ED_vgroup_vert_remove(ob, dgrouplist[j], a);
+                                       remove_vert_defgroup(ob, dgrouplist[j], a);
 
                                if(vertsflipped && dgroupflip[j] && vertsflipped[a] >= 0) {
-                                       weight= ED_vgroup_vert_weight(ob, dgroupflip[j], vertsflipped[a]);
+                                       weight= get_vert_defgroup(ob, dgroupflip[j], vertsflipped[a]);
                                        weight= heat_limit_weight(weight);
                                        if(weight <= 0.0f)
-                                               ED_vgroup_vert_remove(ob, dgroupflip[j], vertsflipped[a]);
+                                               remove_vert_defgroup(ob, dgroupflip[j], vertsflipped[a]);
                                }
                        }
                }