Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/modifiers/intern/MOD_correctivesmooth.c')
-rw-r--r--source/blender/modifiers/intern/MOD_correctivesmooth.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/source/blender/modifiers/intern/MOD_correctivesmooth.c b/source/blender/modifiers/intern/MOD_correctivesmooth.c
index ac91056ed7d..5eee196423e 100644
--- a/source/blender/modifiers/intern/MOD_correctivesmooth.c
+++ b/source/blender/modifiers/intern/MOD_correctivesmooth.c
@@ -783,35 +783,34 @@ static void deformVertsEM(ModifierData *md,
}
}
-static void panel_draw(const bContext *C, Panel *panel)
+static void panel_draw(const bContext *UNUSED(C), Panel *panel)
{
uiLayout *layout = panel->layout;
- PointerRNA 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);
- uiItemR(layout, &ptr, "factor", 0, IFACE_("Factor"), ICON_NONE);
- uiItemR(layout, &ptr, "iterations", 0, NULL, ICON_NONE);
- uiItemR(layout, &ptr, "scale", 0, NULL, ICON_NONE);
- uiItemR(layout, &ptr, "smooth_type", 0, NULL, ICON_NONE);
+ uiItemR(layout, ptr, "factor", 0, IFACE_("Factor"), ICON_NONE);
+ uiItemR(layout, ptr, "iterations", 0, NULL, ICON_NONE);
+ uiItemR(layout, ptr, "scale", 0, NULL, ICON_NONE);
+ uiItemR(layout, ptr, "smooth_type", 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);
- uiItemR(layout, &ptr, "use_only_smooth", 0, NULL, ICON_NONE);
- uiItemR(layout, &ptr, "use_pin_boundary", 0, NULL, ICON_NONE);
+ uiItemR(layout, ptr, "use_only_smooth", 0, NULL, ICON_NONE);
+ uiItemR(layout, ptr, "use_pin_boundary", 0, NULL, ICON_NONE);
- uiItemR(layout, &ptr, "rest_source", 0, NULL, ICON_NONE);
- if (RNA_enum_get(&ptr, "rest_source") == MOD_CORRECTIVESMOOTH_RESTSOURCE_BIND) {
+ uiItemR(layout, ptr, "rest_source", 0, NULL, ICON_NONE);
+ if (RNA_enum_get(ptr, "rest_source") == MOD_CORRECTIVESMOOTH_RESTSOURCE_BIND) {
uiItemO(layout,
- (RNA_boolean_get(&ptr, "is_bind") ? IFACE_("Unbind") : IFACE_("Bind")),
+ (RNA_boolean_get(ptr, "is_bind") ? IFACE_("Unbind") : IFACE_("Bind")),
ICON_NONE,
"OBJECT_OT_correctivesmooth_bind");
}
- modifier_panel_end(layout, &ptr);
+ modifier_panel_end(layout, ptr);
}
static void panelRegister(ARegionType *region_type)