diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-02-10 12:34:19 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-02-10 12:35:39 +0300 |
commit | 5237937a08b52ab44a5683b780a5456f59d28b66 (patch) | |
tree | a383a9faf1609cee8242996df56b4bff77b3b2fc /intern | |
parent | 2cbf32e0fb471c23a81785707200296a049b3017 (diff) |
Cycles: Fix an AttributeErro exceptionr on missing object context
This happens when the properties panel is pinned to the material tab.
Patch by Ralf Hölzemer (aka cheleb), thanks!
Differential Revision: https://developer.blender.org/D1776
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/blender/addon/ui.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py index 755feeda9fb..9234df52f44 100644 --- a/intern/cycles/blender/addon/ui.py +++ b/intern/cycles/blender/addon/ui.py @@ -610,9 +610,9 @@ class Cycles_PT_context_material(CyclesButtonsPanel, 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 |