Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-04-06 19:31:32 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-04-06 19:31:32 +0300
commit3e998b886080d3cd11137327356d1c861ae7ddb4 (patch)
treead013e26fba3788f26bdd1528fc5d0623ae4bf81 /intern
parent4a2b64e43d30a58de7f6d677ea43ffbd656265c7 (diff)
Fix object mode workspace check
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/blender/addon/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py
index c91efc36279..163131392e3 100644
--- a/intern/cycles/blender/addon/ui.py
+++ b/intern/cycles/blender/addon/ui.py
@@ -753,7 +753,7 @@ class CYCLES_PT_context_material(CyclesButtonsPanel, Panel):
col.operator("object.material_slot_move", icon='TRIA_UP', text="").direction = 'UP'
col.operator("object.material_slot_move", icon='TRIA_DOWN', text="").direction = 'DOWN'
- if context.workspace.object_mode == 'EDIT':
+ if ob.mode == 'EDIT':
row = layout.row(align=True)
row.operator("object.material_slot_assign", text="Assign")
row.operator("object.material_slot_select", text="Select")