Skip to content

Commit

Permalink
GH-453 Fix create knot GraphNode index out of bounds error
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Jun 29, 2024
1 parent ea7cf97 commit 1047934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/graph/graph_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ void OrchestratorGraphEdit::_create_connection_knot(const Dictionary& p_connecti
int knot_position = 0;

const Vector2 from_position = source->get_output_port_position(connection.from_port) + source->get_position_offset();
const Vector2 to_position = source->get_input_port_position(connection.to_port) + target->get_position_offset();
const Vector2 to_position = target->get_input_port_position(connection.to_port) + target->get_position_offset();

points.push_back(from_position);
points.append_array(knot_points);
Expand Down

0 comments on commit 1047934

Please sign in to comment.