Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/ui.py
| Show First 20 Lines • Show All 1,896 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.use_property_decorate = False # No animation. | layout.use_property_decorate = False # No animation. | ||||
| scene = context.scene | scene = context.scene | ||||
| cscene = scene.cycles | cscene = scene.cycles | ||||
| cbk = scene.render.bake | cbk = scene.render.bake | ||||
| rd = scene.render | rd = scene.render | ||||
| if (cscene.bake_type == 'NORMAL' and cbk.normal_space == 'TANGENT') or cscene.bake_type == 'UV': | |||||
| if rd.use_bake_multires: | |||||
| layout.prop(rd, "bake_margin", text="Size") | |||||
| else: | |||||
| if cbk.target == 'IMAGE_TEXTURES': | |||||
| layout.prop(cbk, "margin", text="Size") | |||||
| else: | |||||
| if rd.use_bake_multires: | if rd.use_bake_multires: | ||||
| layout.prop(rd, "bake_margin_type", text="Type") | layout.prop(rd, "bake_margin_type", text="Type") | ||||
| layout.prop(rd, "bake_margin", text="Size") | layout.prop(rd, "bake_margin", text="Size") | ||||
| else: | else: | ||||
| if cbk.target == 'IMAGE_TEXTURES': | if cbk.target == 'IMAGE_TEXTURES': | ||||
| layout.prop(cbk, "margin_type", text="Type") | layout.prop(cbk, "margin_type", text="Type") | ||||
| layout.prop(cbk, "margin", text="Size") | layout.prop(cbk, "margin", text="Size") | ||||
| class CYCLES_RENDER_PT_debug(CyclesDebugButtonsPanel, Panel): | class CYCLES_RENDER_PT_debug(CyclesDebugButtonsPanel, Panel): | ||||
| bl_label = "Debug" | bl_label = "Debug" | ||||
| bl_context = "render" | bl_context = "render" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'CYCLES'} | COMPAT_ENGINES = {'CYCLES'} | ||||
| ▲ Show 20 Lines • Show All 405 Lines • Show Last 20 Lines | |||||