Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_modifier.py
| Show First 20 Lines • Show All 923 Lines • ▼ Show 20 Lines | class DATA_PT_modifiers(ModifierButtonsPanel, Panel): | ||||
| def SUBSURF(self, layout, ob, md): | def SUBSURF(self, layout, ob, md): | ||||
| layout.row().prop(md, "subdivision_type", expand=True) | layout.row().prop(md, "subdivision_type", expand=True) | ||||
| split = layout.split() | split = layout.split() | ||||
| col = split.column() | col = split.column() | ||||
| scene = bpy.context.scene | scene = bpy.context.scene | ||||
| engine = scene.render.engine | engine = scene.view_render.engine | ||||
| show_adaptive_options = ( | show_adaptive_options = ( | ||||
| engine == 'CYCLES' and md == ob.modifiers[-1] and | engine == 'CYCLES' and md == ob.modifiers[-1] and | ||||
| scene.cycles.feature_set == 'EXPERIMENTAL' | scene.cycles.feature_set == 'EXPERIMENTAL' | ||||
| ) | ) | ||||
| if show_adaptive_options: | if show_adaptive_options: | ||||
| col.label(text="View:") | col.label(text="View:") | ||||
| col.prop(md, "levels", text="Levels") | col.prop(md, "levels", text="Levels") | ||||
| col.label(text="Render:") | col.label(text="Render:") | ||||
| ▲ Show 20 Lines • Show All 613 Lines • Show Last 20 Lines | |||||