Merge pull request #64050 from pulawskig/master

This commit is contained in:
Rémi Verschelde 2022-08-08 09:00:13 +02:00 committed by GitHub
commit 335b51be70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,9 +294,9 @@ bool AbstractPolygon2DEditor::forward_gui_input(const Ref<InputEvent> &p_event)
_commit_action();
return true;
} else {
pre_move_edit = vertices;
edited_point = PosVertex(insert.polygon, insert.vertex + 1, xform.affine_inverse().xform(insert.pos));
vertices.insert(edited_point.vertex, edited_point.pos);
pre_move_edit = vertices;
selected_point = Vertex(edited_point.polygon, edited_point.vertex);
edge_point = PosVertex();