diff --git a/amaranth/node_editor/display_image.py b/amaranth/node_editor/display_image.py index e0d68190d4ffcf9b4eabba548a5d030d2d07695b..b15be590b6656f3c8d8a220d36043a5ca608c3e9 100644 --- a/amaranth/node_editor/display_image.py +++ b/amaranth/node_editor/display_image.py @@ -40,7 +40,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