Merge pull request #46697 from lawnjelly/camera_2d_delay_logic

Fix Camera2D frame delay
This commit is contained in:
Rémi Verschelde 2021-03-05 20:09:43 +01:00 committed by GitHub
commit b993febf28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -231,8 +231,9 @@ void Camera2D::_notification(int p_what) {
} break;
case NOTIFICATION_TRANSFORM_CHANGED: {
if (!is_processing_internal() && !is_physics_processing_internal())
if (!smoothing_enabled || Engine::get_singleton()->is_editor_hint()) {
_update_scroll();
}
} break;
case NOTIFICATION_ENTER_TREE: {