[Bf-blender-cvs] [39585e1abc1] blender2.8: Fix undefined workspace in UI script

Sergey Sharybin noreply at git.blender.org
Wed Apr 4 12:33:16 CEST 2018


Commit: 39585e1abc13181938568bdc905cff1bee267775
Author: Sergey Sharybin
Date:   Wed Apr 4 12:33:00 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB39585e1abc13181938568bdc905cff1bee267775

Fix undefined workspace in UI script

===================================================================

M	release/scripts/startup/bl_ui/space_view3d_toolbar.py

===================================================================

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")



More information about the Bf-blender-cvs mailing list