diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2022-07-28 15:29:38 +0100 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2022-07-28 15:29:38 +0100 |
commit | 3f83c3a0ac95f42b1fcc22480a8190f7eedc698c (patch) | |
tree | 7569e04a51de5c831920e5fe718b6dde5df87969 | |
parent | edb503cd00614391d14759777c38d8be6d0f20aa (diff) |
When Camera2D enters tree, ensure first update is not lost
-rw-r--r-- | scene/2d/camera_2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/camera_2d.cpp b/scene/2d/camera_2d.cpp index 76b354805c..ade8534112 100644 --- a/scene/2d/camera_2d.cpp +++ b/scene/2d/camera_2d.cpp @@ -247,8 +247,8 @@ void Camera2D::_notification(int p_what) { add_to_group(canvas_group_name); _update_process_callback(); - _update_scroll(); first = true; + _update_scroll(); } break; case NOTIFICATION_EXIT_TREE: { |