Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_subsurf.c
| Show First 20 Lines • Show All 344 Lines • ▼ Show 20 Lines | if (BKE_scene_uses_cycles(scene)) { | ||||
| ob_cycles_ptr = RNA_pointer_get(&ob_ptr, "cycles"); | ob_cycles_ptr = RNA_pointer_get(&ob_ptr, "cycles"); | ||||
| if (!RNA_pointer_is_null(&ob_cycles_ptr)) { | if (!RNA_pointer_is_null(&ob_cycles_ptr)) { | ||||
| ob_use_adaptive_subdivision = RNA_boolean_get(&ob_cycles_ptr, "use_adaptive_subdivision"); | ob_use_adaptive_subdivision = RNA_boolean_get(&ob_cycles_ptr, "use_adaptive_subdivision"); | ||||
| show_adaptive_options = get_show_adaptive_options(C, panel); | show_adaptive_options = get_show_adaptive_options(C, panel); | ||||
| } | } | ||||
| } | } | ||||
| #endif | #endif | ||||
| uiLayoutSetPropSep(layout, true); | uiItemR(layout, &ptr, "subdivision_type", UI_ITEM_R_EXPAND, NULL, ICON_NONE); | ||||
| uiItemR(layout, &ptr, "subdivision_type", 0, IFACE_("Type"), ICON_NONE); | uiLayoutSetPropSep(layout, true); | ||||
| if (show_adaptive_options) { | if (show_adaptive_options) { | ||||
| uiItemR(layout, | uiItemR(layout, | ||||
| &ob_cycles_ptr, | &ob_cycles_ptr, | ||||
| "use_adaptive_subdivision", | "use_adaptive_subdivision", | ||||
| 0, | 0, | ||||
| IFACE_("Adaptive Subdivision"), | IFACE_("Adaptive Subdivision"), | ||||
| ICON_NONE); | ICON_NONE); | ||||
| ▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines | |||||