1
0
Fork 0

fix snap Polygon2D editor

This commit is contained in:
xuhuisheng 2025-09-28 12:52:13 +08:00
parent b4472f4670
commit 800ff0e01e
1 changed files with 1 additions and 1 deletions

View File

@ -794,7 +794,7 @@ void Polygon2DEditor::_canvas_input(const Ref<InputEvent> &p_input) {
} break;
case ACTION_EDIT_POINT: {
Vector<Vector2> uv_new = editing_points;
uv_new.set(point_drag_index, uv_new[point_drag_index] + drag);
uv_new.set(point_drag_index, mtx.affine_inverse().xform(snap_point(mm->get_position())));
if (current_mode == MODE_UV) {
node->set_uv(uv_new);