Fix exception running toolbar w/o an active space

This commit is contained in:
2018-09-03 14:22:58 +10:00
parent ba21c27e76
commit ad68470d44

View File

@@ -2389,6 +2389,10 @@ class WM_OT_toolbar(Operator):
bl_idname = "wm.toolbar"
bl_label = "Toolbar"
@classmethod
def poll(cls, context):
return context.space_data is not None
def execute(self, context):
from bl_ui.space_toolsystem_common import (
ToolSelectPanelHelper,