diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-04 13:33:00 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-04 13:33:10 +0300 |
commit | 39585e1abc13181938568bdc905cff1bee267775 (patch) | |
tree | 13fddabf0732236973d30b73ab49fc62496339b4 | |
parent | 3a17dab2b10731063b9818feba63041ad19fdd2b (diff) |
Fix undefined workspace in UI script
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 2 |
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") |