Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_armature.c
| Show First 20 Lines • Show All 232 Lines • ▼ Show 20 Lines | BKE_armature_deform_coords_with_mesh(amd->object, | ||||
| amd->defgrp_name, | amd->defgrp_name, | ||||
| mesh_src); | mesh_src); | ||||
| if (!ELEM(mesh_src, NULL, mesh)) { | if (!ELEM(mesh_src, NULL, mesh)) { | ||||
| BKE_id_free(NULL, mesh_src); | BKE_id_free(NULL, mesh_src); | ||||
| } | } | ||||
| } | } | ||||
| static void panel_draw(const bContext *C, Panel *panel) | static void panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| { | { | ||||
| uiLayout *col; | uiLayout *col; | ||||
| uiLayout *layout = panel->layout; | uiLayout *layout = panel->layout; | ||||
| PointerRNA ptr; | |||||
| PointerRNA ob_ptr; | PointerRNA ob_ptr; | ||||
| modifier_panel_get_property_pointers(C, panel, &ob_ptr, &ptr); | PointerRNA *ptr = modifier_panel_get_property_pointers(panel, &ob_ptr); | ||||
| uiLayoutSetPropSep(layout, true); | uiLayoutSetPropSep(layout, true); | ||||
| uiItemR(layout, &ptr, "object", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "object", 0, NULL, ICON_NONE); | ||||
| modifier_vgroup_ui(layout, &ptr, &ob_ptr, "vertex_group", "invert_vertex_group", NULL); | modifier_vgroup_ui(layout, ptr, &ob_ptr, "vertex_group", "invert_vertex_group", NULL); | ||||
| col = uiLayoutColumn(layout, true); | col = uiLayoutColumn(layout, true); | ||||
| uiItemR(col, &ptr, "use_deform_preserve_volume", 0, NULL, ICON_NONE); | uiItemR(col, ptr, "use_deform_preserve_volume", 0, NULL, ICON_NONE); | ||||
| uiItemR(col, &ptr, "use_multi_modifier", 0, NULL, ICON_NONE); | uiItemR(col, ptr, "use_multi_modifier", 0, NULL, ICON_NONE); | ||||
| col = uiLayoutColumnWithHeading(layout, true, IFACE_("Bind to")); | col = uiLayoutColumnWithHeading(layout, true, IFACE_("Bind to")); | ||||
| uiItemR(col, &ptr, "use_vertex_groups", 0, IFACE_("Vertex Groups"), ICON_NONE); | uiItemR(col, ptr, "use_vertex_groups", 0, IFACE_("Vertex Groups"), ICON_NONE); | ||||
| uiItemR(col, &ptr, "use_bone_envelopes", 0, IFACE_("Bone Envelopes"), ICON_NONE); | uiItemR(col, ptr, "use_bone_envelopes", 0, IFACE_("Bone Envelopes"), ICON_NONE); | ||||
| modifier_panel_end(layout, &ptr); | modifier_panel_end(layout, ptr); | ||||
| } | } | ||||
| static void panelRegister(ARegionType *region_type) | static void panelRegister(ARegionType *region_type) | ||||
| { | { | ||||
| modifier_panel_register(region_type, eModifierType_Armature, panel_draw); | modifier_panel_register(region_type, eModifierType_Armature, panel_draw); | ||||
| } | } | ||||
| static void blendRead(BlendDataReader *UNUSED(reader), ModifierData *md) | static void blendRead(BlendDataReader *UNUSED(reader), ModifierData *md) | ||||
| Show All 40 Lines | |||||