Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_decimate.c
| Show First 20 Lines • Show All 230 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| uiLayout *sub, *row; | uiLayout *sub, *row; | ||||
| 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 decimate_type = RNA_enum_get(ptr, "decimate_type"); | int decimate_type = RNA_enum_get(ptr, "decimate_type"); | ||||
| char count_info[32]; | char count_info[64]; | ||||
| snprintf(count_info, 32, "%s: %d", IFACE_("Face Count"), RNA_int_get(ptr, "face_count")); | snprintf(count_info, 32, TIP_("Face Count: %d"), RNA_int_get(ptr, "face_count")); | ||||
| uiItemR(layout, ptr, "decimate_type", UI_ITEM_R_EXPAND, NULL, ICON_NONE); | uiItemR(layout, ptr, "decimate_type", UI_ITEM_R_EXPAND, NULL, ICON_NONE); | ||||
| uiLayoutSetPropSep(layout, true); | uiLayoutSetPropSep(layout, true); | ||||
| if (decimate_type == MOD_DECIM_MODE_COLLAPSE) { | if (decimate_type == MOD_DECIM_MODE_COLLAPSE) { | ||||
| uiItemR(layout, ptr, "ratio", UI_ITEM_R_SLIDER, NULL, ICON_NONE); | uiItemR(layout, ptr, "ratio", UI_ITEM_R_SLIDER, NULL, ICON_NONE); | ||||
| ▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines | |||||