Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/ui.py
| Show First 20 Lines • Show All 1,354 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.prop(light, "type", expand=True) | layout.prop(light, "type", expand=True) | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.use_property_decorate = False | layout.use_property_decorate = False | ||||
| col = layout.column() | col = layout.column() | ||||
| if light.type in {'POINT', 'SUN', 'SPOT'}: | if light.type in {'POINT', 'SPOT'}: | ||||
| col.prop(light, "shadow_soft_size", text="Size") | col.prop(light, "shadow_soft_size", text="Size") | ||||
| elif light.type == 'SUN': | |||||
| col.prop(light, "sun_angle", text="Sun angular diameter") | |||||
| elif light.type == 'AREA': | elif light.type == 'AREA': | ||||
| col.prop(light, "shape", text="Shape") | col.prop(light, "shape", text="Shape") | ||||
| sub = col.column(align=True) | sub = col.column(align=True) | ||||
| if light.shape in {'SQUARE', 'DISK'}: | if light.shape in {'SQUARE', 'DISK'}: | ||||
| sub.prop(light, "size") | sub.prop(light, "size") | ||||
| elif light.shape in {'RECTANGLE', 'ELLIPSE'}: | elif light.shape in {'RECTANGLE', 'ELLIPSE'}: | ||||
| sub.prop(light, "size", text="Size X") | sub.prop(light, "size", text="Size X") | ||||
| ▲ Show 20 Lines • Show All 820 Lines • Show Last 20 Lines | |||||