Skip to content

Commit

Permalink
update for Blender 4.0 Beta release
Browse files Browse the repository at this point in the history
  • Loading branch information
tingjoybits committed Oct 1, 2023
1 parent 6175f5a commit 4db3491
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Brush_Manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,8 +899,9 @@ def set_active_tool(tool_name):
if bpy.app.version < (4, 0, 0):
bpy.ops.wm.tool_set_by_id(override, name=tool_name)
continue
with bpy.context.temp_override(**override):
bpy.ops.wm.tool_set_by_id(name=tool_name)
region = area.regions[-1]
with bpy.context.temp_override(area=area, region=region):
bpy.ops.wm.tool_set_by_id('INVOKE_DEFAULT', name=tool_name)


def get_icon_name(context, brush_name):
Expand Down

0 comments on commit 4db3491

Please sign in to comment.