Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/ui.py
| Show First 20 Lines • Show All 694 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| sub.prop(cdata, "subdivision_type", text="") | sub.prop(cdata, "subdivision_type", text="") | ||||
| if cdata.subdivision_type != 'NONE': | if cdata.subdivision_type != 'NONE': | ||||
| sub.label(text="Subdivision Rate:") | sub.label(text="Subdivision Rate:") | ||||
| sub.prop(cdata, "dicing_rate", text="Render") | sub.prop(cdata, "dicing_rate", text="Render") | ||||
| preview_sub = sub.row(align=True) | preview_sub = sub.row(align=True) | ||||
| preview_sub.prop(cdata, "preview_dicing_rate", text="Preview") | preview_sub.prop(cdata, "preview_dicing_rate", text="Preview") | ||||
| preview_sub.prop(cdata, "preview_displacement", text="", icon="RESTRICT_VIEW_OFF") | preview_sub.prop(cdata, "preview_displacement", text="", icon="RESTRICT_VIEW_OFF") | ||||
| sub.separator() | |||||
| sub.prop(cdata, "max_subdivision_level") | |||||
| class CyclesObject_PT_motion_blur(CyclesButtonsPanel, Panel): | class CyclesObject_PT_motion_blur(CyclesButtonsPanel, Panel): | ||||
| bl_label = "Motion Blur" | bl_label = "Motion Blur" | ||||
| bl_context = "object" | bl_context = "object" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| ▲ Show 20 Lines • Show All 1,051 Lines • Show Last 20 Lines | |||||