Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_armature.c
| Show First 20 Lines • Show All 471 Lines • ▼ Show 20 Lines | static void gpencil_object_vgroup_calc_from_armature(const bContext *C, | ||||
| if (mode == GP_ARMATURE_AUTO) { | if (mode == GP_ARMATURE_AUTO) { | ||||
| /* Traverse the bone list, trying to fill vertex groups | /* Traverse the bone list, trying to fill vertex groups | ||||
| * with the corresponding vertice weights for which the | * with the corresponding vertice weights for which the | ||||
| * bone is closest. | * bone is closest. | ||||
| */ | */ | ||||
| gpencil_add_verts_to_dgroups(C, ob, ob_arm, ratio, decay); | gpencil_add_verts_to_dgroups(C, ob, ob_arm, ratio, decay); | ||||
| } | } | ||||
| DEG_relations_tag_update(CTX_data_main(C)); | |||||
| } | } | ||||
| bool ED_gpencil_add_armature_weights( | bool ED_gpencil_add_armature_weights( | ||||
| const bContext *C, ReportList *reports, Object *ob, Object *ob_arm, int mode) | const bContext *C, ReportList *reports, Object *ob, Object *ob_arm, int mode) | ||||
| { | { | ||||
| Main *bmain = CTX_data_main(C); | Main *bmain = CTX_data_main(C); | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| ▲ Show 20 Lines • Show All 205 Lines • Show Last 20 Lines | |||||