Fix axis snapping of CollisionPolygon2d's newly created vertex
(cherry picked from commit ba58491ca7
)
This commit is contained in:
parent
bc8293a125
commit
1f1bed15ba
@ -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 New Issue
Block a user