diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-06-12 05:55:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-06-12 05:55:47 +0300 |
commit | 5ccaef6d678c1714c5c2bb6581ba141f4d03876f (patch) | |
tree | 688616793fe2d686352488d5a44717617883361a | |
parent | 1bd6ed712863d1b052f71a39a71b11796d9caaa2 (diff) |
Fix T51737: Material properties error
D2706 by @knox
-rw-r--r-- | release/scripts/startup/bl_ui/properties_material.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_material.py b/release/scripts/startup/bl_ui/properties_material.py index dc82bb0d69b..73740df37e8 100644 --- a/release/scripts/startup/bl_ui/properties_material.py +++ b/release/scripts/startup/bl_ui/properties_material.py @@ -124,9 +124,10 @@ class MATERIAL_PT_context_material(MaterialButtonsPanel, Panel): ob = context.object slot = context.material_slot space = context.space_data - is_sortable = (len(ob.material_slots) > 1) if ob: + is_sortable = (len(ob.material_slots) > 1) + rows = 1 if is_sortable: rows = 4 |