Fix axis snapping of CollisionPolygon2d's newly created vertex
(cherry picked from commit ba58491ca7
)
This commit is contained in:
parent
8f426262c8
commit
1799189202
1 changed files with 1 additions and 1 deletions
|
@ -319,9 +319,9 @@ bool AbstractPolygon2DEditor::forward_gui_input(const Ref<InputEvent> &p_event)
|
|||
return true;
|
||||
} else {
|
||||
Vector<Vector2> vertices2 = _get_polygon(insert.polygon);
|
||||
pre_move_edit = vertices2;
|
||||
edited_point = PosVertex(insert.polygon, insert.vertex + 1, xform.affine_inverse().xform(insert.pos));
|
||||
vertices2.insert(edited_point.vertex, edited_point.pos);
|
||||
pre_move_edit = vertices2;
|
||||
selected_point = edited_point;
|
||||
edge_point = PosVertex();
|
||||
|
||||
|
|
Loading…
Reference in a new issue