diff options
| author | Juan Linietsky | 2017-09-07 09:58:38 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-09-07 09:58:38 -0300 |
| commit | 895140389a7306eafc9a36f51d892ece0001f223 (patch) | |
| tree | ea72fb140b686d0fb7bc6b5fc1626b6033fcbde9 /editor/plugins/spatial_editor_plugin.cpp | |
| parent | b19b7aebf7673b8d2083f311bd7190680cd39e1e (diff) | |
| download | godot-895140389a7306eafc9a36f51d892ece0001f223.tar.gz godot-895140389a7306eafc9a36f51d892ece0001f223.tar.zst godot-895140389a7306eafc9a36f51d892ece0001f223.zip | |
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index a5f55835f..4e722be44 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -80,7 +80,7 @@ void SpatialEditorViewport::_update_camera(float p_interp_delta) { Transform old_transform = camera->get_global_transform(); Transform transform; - bool disable_interp = (Input::get_singleton()->get_mouse_button_mask() & (2 | 4)) || Input::get_singleton()->is_key_pressed(KEY_SHIFT) || Input::get_singleton()->is_key_pressed(KEY_ALT) || Input::get_singleton()->is_key_pressed(KEY_CONTROL); + bool disable_interp = orthogonal || (Input::get_singleton()->get_mouse_button_mask() & (2 | 4)) || Input::get_singleton()->is_key_pressed(KEY_SHIFT) || Input::get_singleton()->is_key_pressed(KEY_ALT) || Input::get_singleton()->is_key_pressed(KEY_CONTROL); if (p_interp_delta && !disable_interp) { //interpolate |
