diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-09-04 14:48:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 14:48:42 +0200 |
commit | 5c4dffe7c23fcf03f2cee7aa5d703fed4f7147f8 (patch) | |
tree | e572bcecce717f057057016a6bde2f1e4dfe87a8 | |
parent | 605d7b7e8253950825962d47ab37f51ee921c36a (diff) | |
parent | 879390680bc60ad013154168207860f8cd309321 (diff) |
Merge pull request #41764 from madmiraal/make-slicing-explicit
Make PosVertex to Vertex slicing explicit.
-rw-r--r-- | editor/plugins/abstract_polygon_2d_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/abstract_polygon_2d_editor.cpp b/editor/plugins/abstract_polygon_2d_editor.cpp index 49e67f3605..7a3fb1ff52 100644 --- a/editor/plugins/abstract_polygon_2d_editor.cpp +++ b/editor/plugins/abstract_polygon_2d_editor.cpp @@ -287,7 +287,7 @@ bool AbstractPolygon2DEditor::forward_gui_input(const Ref<InputEvent> &p_event) 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); - selected_point = edited_point; + selected_point = Vertex(edited_point.polygon, edited_point.vertex); edge_point = PosVertex(); undo_redo->create_action(TTR("Insert Point")); |