Docs: corrections to bpy.utils.register_tool
- Replaced `tool` argument with `tool_cls`. - Removed `space_type` argument that's not present in the method. Ref: !118900
This commit is contained in:
parent
d1cff7974a
commit
1f0592b3b1
@ -900,10 +900,8 @@ def register_tool(tool_cls, *, after=None, separator=False, group=False):
|
||||
"""
|
||||
Register a tool in the toolbar.
|
||||
|
||||
:arg tool: A tool subclass.
|
||||
:type tool: :class:`bpy.types.WorkSpaceTool` subclass.
|
||||
:arg space_type: Space type identifier.
|
||||
:type space_type: string
|
||||
:arg tool_cls: A tool subclass.
|
||||
:type tool_cls: :class:`bpy.types.WorkSpaceTool` subclass.
|
||||
:arg after: Optional identifiers this tool will be added after.
|
||||
:type after: collection of strings or None.
|
||||
:arg separator: When true, add a separator before this tool.
|
||||
|
Loading…
Reference in New Issue
Block a user