UI: use keyword arguments

Prepare for keyword only args.
This commit is contained in:
Campbell Barton
2018-08-28 13:41:47 +10:00
parent 268cdb503f
commit e1ec93ce75
10 changed files with 24 additions and 24 deletions

View File

@@ -273,7 +273,7 @@ class ToolSelectPanelHelper:
if space_type == 'VIEW_3D':
if mode is None:
mode = context.mode
tool = context.workspace.tools.from_space_view3d_mode(mode, create)
tool = context.workspace.tools.from_space_view3d_mode(mode, create=create)
if tool is not None:
tool.refresh_from_context()
return tool
@@ -284,7 +284,7 @@ class ToolSelectPanelHelper:
mode = 'VIEW'
else:
mode = space_data.mode
tool = context.workspace.tools.from_space_image_mode(mode, create)
tool = context.workspace.tools.from_space_image_mode(mode, create=create)
if tool is not None:
tool.refresh_from_context()
return tool