diff options
Diffstat (limited to 'source/blender/modifiers/intern/MOD_cloth.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_cloth.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_cloth.c b/source/blender/modifiers/intern/MOD_cloth.c index da7485b5a2d..c7551b1be00 100644 --- a/source/blender/modifiers/intern/MOD_cloth.c +++ b/source/blender/modifiers/intern/MOD_cloth.c @@ -27,15 +27,19 @@ #include "BLI_listbase.h" +#include "BLT_translation.h" + #include "DNA_cloth_types.h" #include "DNA_key_types.h" #include "DNA_mesh_types.h" #include "DNA_object_types.h" #include "DNA_scene_types.h" +#include "DNA_screen_types.h" #include "MEM_guardedalloc.h" #include "BKE_cloth.h" +#include "BKE_context.h" #include "BKE_effect.h" #include "BKE_global.h" #include "BKE_key.h" @@ -44,10 +48,17 @@ #include "BKE_mesh.h" #include "BKE_modifier.h" #include "BKE_pointcache.h" +#include "BKE_screen.h" + +#include "UI_interface.h" +#include "UI_resources.h" + +#include "RNA_access.h" #include "DEG_depsgraph_physics.h" #include "DEG_depsgraph_query.h" +#include "MOD_ui_common.h" #include "MOD_util.h" static void initData(ModifierData *md) @@ -253,6 +264,23 @@ static void foreachIDLink(ModifierData *md, Object *ob, IDWalkFunc walk, void *u } } +static void panel_draw(const bContext *C, Panel *panel) +{ + uiLayout *layout = panel->layout; + + PointerRNA ptr; + modifier_panel_get_property_pointers(C, panel, NULL, &ptr); + + uiItemL(layout, IFACE_("Settings are inside the Physics tab"), ICON_NONE); + + modifier_panel_end(layout, &ptr); +} + +static void panelRegister(ARegionType *region_type) +{ + modifier_panel_register(region_type, eModifierType_Cloth, panel_draw); +} + ModifierTypeInfo modifierType_Cloth = { /* name */ "Cloth", /* structName */ "ClothModifierData", @@ -283,4 +311,5 @@ ModifierTypeInfo modifierType_Cloth = { /* foreachIDLink */ foreachIDLink, /* foreachTexLink */ NULL, /* freeRuntimeData */ NULL, + /* panelRegister */ panelRegister, }; |