Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/ui.py
| Show First 20 Lines • Show All 1,826 Lines • ▼ Show 20 Lines | class CYCLES_MATERIAL_PT_settings_surface(CyclesButtonsPanel, Panel): | ||||
| def draw_shared(self, mat): | def draw_shared(self, mat): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.use_property_decorate = False | layout.use_property_decorate = False | ||||
| cmat = mat.cycles | cmat = mat.cycles | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(cmat, "sample_as_light", text="Multiple Importance") | |||||
| col.prop(cmat, "use_transparent_shadow") | |||||
| col.prop(cmat, "displacement_method", text="Displacement") | col.prop(cmat, "displacement_method", text="Displacement") | ||||
| col.prop(cmat, "emission_sampling") | |||||
| col.prop(cmat, "use_transparent_shadow") | |||||
| def draw(self, context): | def draw(self, context): | ||||
| self.draw_shared(self, context.material) | self.draw_shared(self, context.material) | ||||
| class CYCLES_MATERIAL_PT_settings_volume(CyclesButtonsPanel, Panel): | class CYCLES_MATERIAL_PT_settings_volume(CyclesButtonsPanel, Panel): | ||||
| bl_label = "Volume" | bl_label = "Volume" | ||||
| bl_parent_id = "CYCLES_MATERIAL_PT_settings" | bl_parent_id = "CYCLES_MATERIAL_PT_settings" | ||||
| ▲ Show 20 Lines • Show All 636 Lines • Show Last 20 Lines | |||||