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
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-04-04 13:33:00 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-04-04 13:33:10 +0300
commit39585e1abc13181938568bdc905cff1bee267775 (patch)
tree13fddabf0732236973d30b73ab49fc62496339b4 /release/scripts/startup/bl_ui/space_view3d_toolbar.py
parent3a17dab2b10731063b9818feba63041ad19fdd2b (diff)
Fix undefined workspace in UI script
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d_toolbar.py')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 7a3b0f26edc..060433b1f9c 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -2051,7 +2051,7 @@ class VIEW3D_PT_tools_history(View3DPanel, Panel):
row = col.row(align=True)
row.operator("ed.undo")
row.operator("ed.redo")
- if obj is None or workspace.object_mode != 'SCULPT':
+ if obj is None or context.workspace.object_mode != 'SCULPT':
# Sculpt mode does not generate an undo menu it seems...
col.operator("ed.undo_history")