Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_multires.c
| Show First 20 Lines • Show All 466 Lines • ▼ Show 20 Lines | static void advanced_panel_draw(const bContext *C, Panel *panel) | ||||
| modifier_panel_get_property_pointers(C, panel, NULL, &ptr); | modifier_panel_get_property_pointers(C, panel, NULL, &ptr); | ||||
| bool has_displacement = RNA_int_get(&ptr, "total_levels") != 0; | bool has_displacement = RNA_int_get(&ptr, "total_levels") != 0; | ||||
| uiLayoutSetPropSep(layout, true); | uiLayoutSetPropSep(layout, true); | ||||
| uiLayoutSetEnabled(layout, !has_displacement); | uiLayoutSetEnabled(layout, !has_displacement); | ||||
| uiItemR(layout, &ptr, "subdivision_type", 0, NULL, ICON_NONE); | |||||
| uiItemR(layout, &ptr, "quality", 0, NULL, ICON_NONE); | uiItemR(layout, &ptr, "quality", 0, NULL, ICON_NONE); | ||||
| col = uiLayoutColumn(layout, false); | col = uiLayoutColumn(layout, false); | ||||
| uiLayoutSetEnabled(col, true); | uiLayoutSetEnabled(col, true); | ||||
| uiItemR(col, &ptr, "uv_smooth", 0, NULL, ICON_NONE); | uiItemR(col, &ptr, "uv_smooth", 0, NULL, ICON_NONE); | ||||
| uiItemR(layout, &ptr, "use_creases", 0, NULL, ICON_NONE); | uiItemR(layout, &ptr, "use_creases", 0, NULL, ICON_NONE); | ||||
| uiItemR(layout, &ptr, "use_custom_normals", 0, NULL, ICON_NONE); | uiItemR(layout, &ptr, "use_custom_normals", 0, NULL, ICON_NONE); | ||||
| ▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines | |||||