Fix editor constantly redrawing when freelook is active with still camera

The editor only needs to redraw when the camera is moving.

This helps preserver battery life on laptops when using freelook,
especially with the toggle mode (Shift + F).
This commit is contained in:
Hugo Locurcio 2021-05-23 19:50:53 +02:00
parent 809948f977
commit 21807f8d88
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C

View file

@ -344,7 +344,7 @@ void Node3DEditorViewport::_update_camera(float p_interp_delta) {
equal = false;
}
if (!equal || p_interp_delta == 0 || is_freelook_active() || is_orthogonal != orthogonal) {
if (!equal || p_interp_delta == 0 || is_orthogonal != orthogonal) {
camera->set_global_transform(to_camera_transform(camera_cursor));
if (orthogonal) {