Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_solidify.c
| Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | static void panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| if (solidify_mode == MOD_SOLIDIFY_MODE_NONMANIFOLD) { | if (solidify_mode == MOD_SOLIDIFY_MODE_NONMANIFOLD) { | ||||
| uiItemR(layout, ptr, "nonmanifold_merge_threshold", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "nonmanifold_merge_threshold", 0, NULL, ICON_NONE); | ||||
| } | } | ||||
| else { | else { | ||||
| uiItemR(layout, ptr, "use_even_offset", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "use_even_offset", 0, NULL, ICON_NONE); | ||||
| } | } | ||||
| col = uiLayoutColumnWithHeading(layout, false, IFACE_("Rim")); | col = uiLayoutColumnWithHeading(layout, false, CTX_IFACE_(BLT_I18NCONTEXT_ID_MESH, "Rim")); | ||||
| uiItemR(col, ptr, "use_rim", 0, IFACE_("Fill"), ICON_NONE); | uiItemR(col, ptr, "use_rim", 0, IFACE_("Fill"), ICON_NONE); | ||||
| sub = uiLayoutColumn(col, false); | sub = uiLayoutColumn(col, false); | ||||
| uiLayoutSetActive(sub, RNA_boolean_get(ptr, "use_rim")); | uiLayoutSetActive(sub, RNA_boolean_get(ptr, "use_rim")); | ||||
| uiItemR(sub, ptr, "use_rim_only", 0, NULL, ICON_NONE); | uiItemR(sub, ptr, "use_rim_only", 0, NULL, ICON_NONE); | ||||
| uiItemS(layout); | uiItemS(layout); | ||||
| 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); | ||||
| Show All 37 Lines | static void materials_panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| PointerRNA ob_ptr; | PointerRNA ob_ptr; | ||||
| PointerRNA *ptr = modifier_panel_get_property_pointers(panel, &ob_ptr); | PointerRNA *ptr = modifier_panel_get_property_pointers(panel, &ob_ptr); | ||||
| uiLayoutSetPropSep(layout, true); | uiLayoutSetPropSep(layout, true); | ||||
| uiItemR(layout, ptr, "material_offset", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "material_offset", 0, NULL, ICON_NONE); | ||||
| col = uiLayoutColumn(layout, true); | col = uiLayoutColumn(layout, true); | ||||
| uiLayoutSetActive(col, RNA_boolean_get(ptr, "use_rim")); | uiLayoutSetActive(col, RNA_boolean_get(ptr, "use_rim")); | ||||
| uiItemR(col, ptr, "material_offset_rim", 0, IFACE_("Rim"), ICON_NONE); | uiItemR(col, ptr, "material_offset_rim", 0, CTX_IFACE_(BLT_I18NCONTEXT_ID_MESH, "Rim"), ICON_NONE); | ||||
| } | } | ||||
| static void edge_data_panel_draw(const bContext *UNUSED(C), Panel *panel) | static void edge_data_panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| { | { | ||||
| uiLayout *layout = panel->layout; | uiLayout *layout = panel->layout; | ||||
| PointerRNA ob_ptr; | PointerRNA ob_ptr; | ||||
| PointerRNA *ptr = modifier_panel_get_property_pointers(panel, &ob_ptr); | PointerRNA *ptr = modifier_panel_get_property_pointers(panel, &ob_ptr); | ||||
| int solidify_mode = RNA_enum_get(ptr, "solidify_mode"); | int solidify_mode = RNA_enum_get(ptr, "solidify_mode"); | ||||
| uiLayoutSetPropSep(layout, true); | uiLayoutSetPropSep(layout, true); | ||||
| if (solidify_mode == MOD_SOLIDIFY_MODE_EXTRUDE) { | if (solidify_mode == MOD_SOLIDIFY_MODE_EXTRUDE) { | ||||
| uiLayout *col; | uiLayout *col; | ||||
| col = uiLayoutColumn(layout, true); | col = uiLayoutColumn(layout, true); | ||||
| uiItemR(col, ptr, "edge_crease_inner", 0, IFACE_("Crease Inner"), ICON_NONE); | uiItemR(col, ptr, "edge_crease_inner", 0, IFACE_("Crease Inner"), ICON_NONE); | ||||
| uiItemR(col, ptr, "edge_crease_outer", 0, IFACE_("Outer"), ICON_NONE); | uiItemR(col, ptr, "edge_crease_outer", 0, IFACE_("Outer"), ICON_NONE); | ||||
| uiItemR(col, ptr, "edge_crease_rim", 0, IFACE_("Rim"), ICON_NONE); | uiItemR(col, ptr, "edge_crease_rim", 0, CTX_IFACE_(BLT_I18NCONTEXT_ID_MESH, "Rim"), ICON_NONE); | ||||
| } | } | ||||
| uiItemR(layout, ptr, "bevel_convex", UI_ITEM_R_SLIDER, NULL, ICON_NONE); | uiItemR(layout, ptr, "bevel_convex", UI_ITEM_R_SLIDER, NULL, ICON_NONE); | ||||
| } | } | ||||
| static void clamp_panel_draw(const bContext *UNUSED(C), Panel *panel) | static void clamp_panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| { | { | ||||
| uiLayout *row, *col; | uiLayout *row, *col; | ||||
| uiLayout *layout = panel->layout; | uiLayout *layout = panel->layout; | ||||
| Show All 18 Lines | static void vertex_group_panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| PointerRNA ob_ptr; | PointerRNA ob_ptr; | ||||
| PointerRNA *ptr = modifier_panel_get_property_pointers(panel, &ob_ptr); | PointerRNA *ptr = modifier_panel_get_property_pointers(panel, &ob_ptr); | ||||
| uiLayoutSetPropSep(layout, true); | uiLayoutSetPropSep(layout, true); | ||||
| col = uiLayoutColumn(layout, false); | col = uiLayoutColumn(layout, false); | ||||
| uiItemPointerR( | uiItemPointerR( | ||||
| col, ptr, "shell_vertex_group", &ob_ptr, "vertex_groups", IFACE_("Shell"), ICON_NONE); | col, ptr, "shell_vertex_group", &ob_ptr, "vertex_groups", IFACE_("Shell"), ICON_NONE); | ||||
| uiItemPointerR(col, ptr, "rim_vertex_group", &ob_ptr, "vertex_groups", IFACE_("Rim"), ICON_NONE); | uiItemPointerR(col, ptr, "rim_vertex_group", &ob_ptr, "vertex_groups", CTX_IFACE_(BLT_I18NCONTEXT_ID_MESH, "Rim"), ICON_NONE); | ||||
| } | } | ||||
| static void panelRegister(ARegionType *region_type) | static void panelRegister(ARegionType *region_type) | ||||
| { | { | ||||
| PanelType *panel_type = modifier_panel_register(region_type, eModifierType_Solidify, panel_draw); | PanelType *panel_type = modifier_panel_register(region_type, eModifierType_Solidify, panel_draw); | ||||
| modifier_subpanel_register( | modifier_subpanel_register( | ||||
| region_type, "normals", "Normals", NULL, normals_panel_draw, panel_type); | region_type, "normals", "Normals", NULL, normals_panel_draw, panel_type); | ||||
| modifier_subpanel_register( | modifier_subpanel_register( | ||||
| ▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines | |||||