From 1f0592b3b19d1babc68e80d03a8a6d36957ef271 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 29 Feb 2024 16:08:10 +0500 Subject: [PATCH] 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 --- scripts/modules/bpy/utils/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/modules/bpy/utils/__init__.py b/scripts/modules/bpy/utils/__init__.py index 8fd8f287daa..6da5426bcca 100644 --- a/scripts/modules/bpy/utils/__init__.py +++ b/scripts/modules/bpy/utils/__init__.py @@ -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.