Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_softbody.c
| Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | DEG_add_collision_relations(ctx->node, | ||||
| "Softbody Collision"); | "Softbody Collision"); | ||||
| DEG_add_forcefield_relations( | DEG_add_forcefield_relations( | ||||
| ctx->node, ctx->object, ctx->object->soft->effector_weights, true, 0, "Softbody Field"); | ctx->node, ctx->object, ctx->object->soft->effector_weights, true, 0, "Softbody Field"); | ||||
| } | } | ||||
| /* We need own transformation as well. */ | /* We need own transformation as well. */ | ||||
| DEG_add_modifier_to_transform_relation(ctx->node, "SoftBody Modifier"); | DEG_add_modifier_to_transform_relation(ctx->node, "SoftBody Modifier"); | ||||
| } | } | ||||
| 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_Softbody, panel_draw); | modifier_panel_register(region_type, eModifierType_Softbody, panel_draw); | ||||
| } | } | ||||
| ModifierTypeInfo modifierType_Softbody = { | ModifierTypeInfo modifierType_Softbody = { | ||||
| Show All 34 Lines | |||||