Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/ui.py
| Context not available. | |||||
| ob = context.object | ob = context.object | ||||
| slot = context.material_slot | slot = context.material_slot | ||||
| space = context.space_data | space = context.space_data | ||||
| is_sortable = len(ob.material_slots) > 1 | |||||
| if ob: | if ob: | ||||
| is_sortable = len(ob.material_slots) > 1 | |||||
| rows = 1 | rows = 1 | ||||
| if (is_sortable): | if (is_sortable): | ||||
| rows = 4 | rows = 4 | ||||
| Context not available. | |||||