Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_mirror.c
| Show First 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | static void panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| uiItemR(col, ptr, "use_clip", 0, IFACE_("Clipping"), ICON_NONE); | uiItemR(col, ptr, "use_clip", 0, IFACE_("Clipping"), ICON_NONE); | ||||
| row = uiLayoutRowWithHeading(col, true, IFACE_("Merge")); | row = uiLayoutRowWithHeading(col, true, IFACE_("Merge")); | ||||
| uiItemR(row, ptr, "use_mirror_merge", 0, "", ICON_NONE); | uiItemR(row, ptr, "use_mirror_merge", 0, "", ICON_NONE); | ||||
| sub = uiLayoutRow(row, true); | sub = uiLayoutRow(row, true); | ||||
| uiLayoutSetActive(sub, RNA_boolean_get(ptr, "use_mirror_merge")); | uiLayoutSetActive(sub, RNA_boolean_get(ptr, "use_mirror_merge")); | ||||
| uiItemR(sub, ptr, "merge_threshold", 0, "", ICON_NONE); | uiItemR(sub, ptr, "merge_threshold", 0, "", ICON_NONE); | ||||
| bool is_bisect_set[3]; | |||||
| RNA_boolean_get_array(ptr, "use_bisect_axis", is_bisect_set); | |||||
| sub = uiLayoutRow(col, true); | |||||
| uiLayoutSetActive(sub, is_bisect_set[0] || is_bisect_set[1] || is_bisect_set[2]); | |||||
| uiItemR(sub, ptr, "bisect_threshold", 0, IFACE_("Bisect Distance"), ICON_NONE); | |||||
| modifier_panel_end(layout, ptr); | modifier_panel_end(layout, ptr); | ||||
| } | } | ||||
| static void data_panel_draw(const bContext *UNUSED(C), Panel *panel) | static void data_panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| { | { | ||||
| uiLayout *col, *row, *sub; | uiLayout *col, *row, *sub; | ||||
| uiLayout *layout = panel->layout; | uiLayout *layout = panel->layout; | ||||
| ▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines | |||||