Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/ui.py
| Show First 20 Lines • Show All 1,439 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| row = box.row(align=True) | row = box.row(align=True) | ||||
| row.label(text="Swizzle:") | row.label(text="Swizzle:") | ||||
| row.prop(cbk, "normal_r", text="") | row.prop(cbk, "normal_r", text="") | ||||
| row.prop(cbk, "normal_g", text="") | row.prop(cbk, "normal_g", text="") | ||||
| row.prop(cbk, "normal_b", text="") | row.prop(cbk, "normal_b", text="") | ||||
| class CyclesRender_PT_debug(CyclesButtonsPanel, Panel): | |||||
| bl_label = "Debug" | |||||
| bl_context = "render" | |||||
| bl_options = {'DEFAULT_CLOSED'} | |||||
| COMPAT_ENGINES = {'CYCLES'} | |||||
| @classmethod | |||||
| def poll(cls, context): | |||||
| return bpy.app.debug_value == 256 | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| scene = context.scene | |||||
| cscene = scene.cycles | |||||
| col = layout.column() | |||||
| col.label('CPU Flags:') | |||||
| row = layout.row(align=True) | |||||
| row.prop(cscene, "debug_use_cpu_sse2", toggle=True) | |||||
| row.prop(cscene, "debug_use_cpu_sse3", toggle=True) | |||||
| row.prop(cscene, "debug_use_cpu_sse41", toggle=True) | |||||
| row.prop(cscene, "debug_use_cpu_avx", toggle=True) | |||||
| row.prop(cscene, "debug_use_cpu_avx2", toggle=True) | |||||
| col = layout.column() | |||||
| col.label('OpenCL Flags:') | |||||
| col.prop(cscene, "debug_opencl_kernel_type", text="Kernel") | |||||
| col.prop(cscene, "debug_opencl_device_type", text="Device") | |||||
| col.prop(cscene, "debug_use_opencl_debug", text="Debug") | |||||
| class CyclesParticle_PT_CurveSettings(CyclesButtonsPanel, Panel): | class CyclesParticle_PT_CurveSettings(CyclesButtonsPanel, Panel): | ||||
| bl_label = "Cycles Hair Settings" | bl_label = "Cycles Hair Settings" | ||||
| bl_context = "particle" | bl_context = "particle" | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| ccscene = scene.cycles_curves | ccscene = scene.cycles_curves | ||||
| ▲ Show 20 Lines • Show All 205 Lines • Show Last 20 Lines | |||||