[Bf-blender-cvs] [5ccaef6d678] master: Fix T51737: Material properties error
Campbell Barton
noreply at git.blender.org
Mon Jun 12 05:47:47 CEST 2017
Commit: 5ccaef6d678c1714c5c2bb6581ba141f4d03876f
Author: Campbell Barton
Date: Mon Jun 12 12:55:47 2017 +1000
Branches: master
https://developer.blender.org/rB5ccaef6d678c1714c5c2bb6581ba141f4d03876f
Fix T51737: Material properties error
D2706 by @knox
===================================================================
M release/scripts/startup/bl_ui/properties_material.py
===================================================================
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
More information about the Bf-blender-cvs
mailing list