Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_vgroup.c
| Show First 20 Lines • Show All 1,508 Lines • ▼ Show 20 Lines | static void moveCloserToDistanceFromPlane(Depsgraph *depsgraph, | ||||
| MEM_freeN(dwIndices); | MEM_freeN(dwIndices); | ||||
| } | } | ||||
| /* this is used to try to smooth a surface by only adjusting the nonzero weights of a vertex | /* this is used to try to smooth a surface by only adjusting the nonzero weights of a vertex | ||||
| * but it could be used to raise or lower an existing 'bump.' */ | * but it could be used to raise or lower an existing 'bump.' */ | ||||
| static void vgroup_fix( | static void vgroup_fix( | ||||
| const bContext *C, Scene *UNUSED(scene), Object *ob, float distToBe, float strength, float cp) | const bContext *C, Scene *UNUSED(scene), Object *ob, float distToBe, float strength, float cp) | ||||
| { | { | ||||
| Depsgraph *depsgraph = CTX_data_depsgraph(C); | Depsgraph *depsgraph = CTX_data_ensure_evaluated_depsgraph(C); | ||||
| Scene *scene_eval = DEG_get_evaluated_scene(depsgraph); | Scene *scene_eval = DEG_get_evaluated_scene(depsgraph); | ||||
| Object *object_eval = DEG_get_evaluated_object(depsgraph, ob); | Object *object_eval = DEG_get_evaluated_object(depsgraph, ob); | ||||
| int i; | int i; | ||||
| Mesh *me = ob->data; | Mesh *me = ob->data; | ||||
| MVert *mvert = me->mvert; | MVert *mvert = me->mvert; | ||||
| int *verts = NULL; | int *verts = NULL; | ||||
| if (!(me->editflag & ME_EDIT_PAINT_VERT_SEL)) { | if (!(me->editflag & ME_EDIT_PAINT_VERT_SEL)) { | ||||
| ▲ Show 20 Lines • Show All 2,702 Lines • Show Last 20 Lines | |||||