We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f97c511 + 8098581 commit a9cef6cCopy full SHA for a9cef6c
editor/plugins/polygon_2d_editor_plugin.cpp
@@ -629,9 +629,8 @@ void Polygon2DEditor::_canvas_input(const Ref<InputEvent> &p_input) {
629
if (current_action == ACTION_EDIT_POINT) {
630
point_drag_index = -1;
631
for (int i = 0; i < editing_points.size(); i++) {
632
- Vector2 tuv = mtx.xform(editing_points[i]);
633
- if (tuv.distance_to(mb->get_position()) < 8) {
634
- drag_from = tuv;
+ if (mtx.xform(editing_points[i]).distance_to(mb->get_position()) < 8) {
+ drag_from = mb->get_position();
635
point_drag_index = i;
636
}
637
0 commit comments