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).
(cherry picked from commit 21807f8d88
)
This commit is contained in:
parent
a34d5c31b7
commit
f88dc1fd44
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ void SpatialEditorViewport::_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) {
|
||||
|
|
Loading…
Reference in a new issue