1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Do not commit transforms and handles if no changes were made

This commit is contained in:
Robert Yevdokimov
2024-01-13 22:49:20 -05:00
parent 26b1fd0d84
commit f2f3f17de8
9 changed files with 69 additions and 48 deletions

View File

@@ -326,6 +326,7 @@ bool CollisionShape2DEditor::forward_canvas_gui_input(const Ref<InputEvent> &p_e
return false;
}
original_mouse_pos = gpoint;
original_point = handles[edit_handle];
original = get_handle_value(edit_handle);
original_transform = node->get_global_transform();
@@ -336,7 +337,9 @@ bool CollisionShape2DEditor::forward_canvas_gui_input(const Ref<InputEvent> &p_e
} else {
if (pressed) {
commit_handle(edit_handle, original);
if (original_mouse_pos != gpoint) {
commit_handle(edit_handle, original);
}
edit_handle = -1;
pressed = false;