Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/ui.py
| Show First 20 Lines • Show All 2,299 Lines • ▼ Show 20 Lines | if context.engine == 'CYCLES': | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(cscene, "feature_set") | col.prop(cscene, "feature_set") | ||||
| col = layout.column() | col = layout.column() | ||||
| col.active = show_device_active(context) | col.active = show_device_active(context) | ||||
| col.prop(cscene, "device") | col.prop(cscene, "device") | ||||
| from . import engine | from . import engine | ||||
| if engine.with_osl() and use_cpu(context): | if engine.with_osl() and (use_cpu(context) or (use_optix(context) and (engine.osl_version()[1] >= 13 or engine.osl_version()[0] > 1))): | ||||
| col.prop(cscene, "shading_system") | col.prop(cscene, "shading_system") | ||||
| def draw_pause(self, context): | def draw_pause(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| scene = context.scene | scene = context.scene | ||||
| if context.engine == "CYCLES": | if context.engine == "CYCLES": | ||||
| ▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines | |||||