diff --git a/amaranth/node_editor/display_image.py b/amaranth/node_editor/display_image.py index 77b081b289ea5df3ce8e9bd9a0f37850495497b2..81048b0c5ab3d3f019bc46675aa5122265e6de32 100644 --- a/amaranth/node_editor/display_image.py +++ b/amaranth/node_editor/display_image.py @@ -39,7 +39,7 @@ class AMTH_NODE_OT_show_active_node_image(bpy.types.Operator): def invoke(self, context, event): mlocx = event.mouse_region_x mlocy = event.mouse_region_y - select_node = bpy.ops.node.select(mouse_x=mlocx, mouse_y=mlocy, extend=False) + select_node = bpy.ops.node.select(location=(mlocx, mlocy), extend=False) if 'FINISHED' in select_node: # Only run if we're clicking on a node get_addon = "amaranth" in context.preferences.addons.keys() diff --git a/node_wrangler.py b/node_wrangler.py index 431b6ea4d29387d38b4ed9b8672d3be79e2c48f6..ba0b33c2c614293afe9980c5a4ed841936da95bf 100644 --- a/node_wrangler.py +++ b/node_wrangler.py @@ -1856,7 +1856,7 @@ class NWPreviewNode(Operator, NWBase): shader_types = [x[1] for x in shaders_shader_nodes_props] mlocx = event.mouse_region_x mlocy = event.mouse_region_y - select_node = bpy.ops.node.select(mouse_x=mlocx, mouse_y=mlocy, extend=False) + select_node = bpy.ops.node.select(location=(mlocx, mlocy), extend=False) if 'FINISHED' in select_node: # only run if mouse click is on a node active_tree, path_to_tree = get_active_tree(context) nodes, links = active_tree.nodes, active_tree.links @@ -4026,7 +4026,7 @@ class NWViewerFocus(bpy.types.Operator): if viewers: mlocx = event.mouse_region_x mlocy = event.mouse_region_y - select_node = bpy.ops.node.select(mouse_x=mlocx, mouse_y=mlocy, extend=False) + select_node = bpy.ops.node.select(location=(mlocx, mlocy), extend=False) if not 'FINISHED' in select_node: # only run if we're not clicking on a node region_x = context.region.width