Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_cloth.c
| Show First 20 Lines • Show All 258 Lines • ▼ Show 20 Lines | if (clmd->coll_parms) { | ||||
| walk(userData, ob, (ID **)&clmd->coll_parms->group, IDWALK_CB_NOP); | walk(userData, ob, (ID **)&clmd->coll_parms->group, IDWALK_CB_NOP); | ||||
| } | } | ||||
| if (clmd->sim_parms && clmd->sim_parms->effector_weights) { | if (clmd->sim_parms && clmd->sim_parms->effector_weights) { | ||||
| walk(userData, ob, (ID **)&clmd->sim_parms->effector_weights->group, IDWALK_CB_NOP); | walk(userData, ob, (ID **)&clmd->sim_parms->effector_weights->group, IDWALK_CB_NOP); | ||||
| } | } | ||||
| } | } | ||||
| static void panel_draw(const bContext *C, Panel *panel) | static void panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| { | { | ||||
| uiLayout *layout = panel->layout; | uiLayout *layout = panel->layout; | ||||
| PointerRNA ptr; | PointerRNA *ptr = modifier_panel_get_property_pointers(panel, NULL); | ||||
| modifier_panel_get_property_pointers(C, panel, NULL, &ptr); | |||||
| uiItemL(layout, IFACE_("Settings are inside the Physics tab"), ICON_NONE); | uiItemL(layout, IFACE_("Settings are inside the Physics tab"), 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_Cloth, panel_draw); | modifier_panel_register(region_type, eModifierType_Cloth, panel_draw); | ||||
| } | } | ||||
| ModifierTypeInfo modifierType_Cloth = { | ModifierTypeInfo modifierType_Cloth = { | ||||
| Show All 33 Lines | |||||