Skip to content

Commit

Permalink
align new nodes on 0,0
Browse files Browse the repository at this point in the history
  • Loading branch information
fde31 committed Dec 12, 2024
1 parent e7e2bb4 commit faaf594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actions/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,8 @@ export const addPatcherNode = (desc: OSCQueryRNBOInstance, metaString: string):

const state = getState();
const { x, y } = nodeMeta?.position || getGraphEditorInstance(state)?.project({
y: 10,
x: 10
y: 0,
x: 0
}) || getPatcherOrControlNodeCoordinates(node, []);

node = node.updatePosition(x, y);
Expand Down

0 comments on commit faaf594

Please sign in to comment.