Fix issue w/ recent tool name use
Use the context space type, not the workspace. Broke setting tools for the first time.
This commit is contained in:
parent
d21043ba83
commit
3767c01269
|
@ -257,8 +257,7 @@ class ToolSelectPanelHelper:
|
|||
"""
|
||||
Return the active Python tool definition and index (if in sub-group, else -1).
|
||||
"""
|
||||
workspace = context.workspace
|
||||
cls = ToolSelectPanelHelper._tool_class_from_space_type(workspace.tool_space_type)
|
||||
cls = ToolSelectPanelHelper._tool_class_from_space_type(context.space_data.type)
|
||||
if cls is not None:
|
||||
context_mode = context.mode
|
||||
for item, index in ToolSelectPanelHelper._tools_flatten_with_tool_index(cls.tools_from_context(context)):
|
||||
|
|
Loading…
Reference in New Issue