summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2022-07-16 16:03:54 +0100
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2022-07-17 08:51:43 +0100
commit4c23fe602b7be8103bc611e2558f9bcfc6a3a57e (patch)
tree94be850dde0abf19241b2f7721ecd462ec488164
parent96c75f1d10af6906d472252fe020b1c842015e28 (diff)
Update camera position when updating camera limit
-rw-r--r--scene/2d/camera_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/camera_2d.cpp b/scene/2d/camera_2d.cpp
index 2616d1f09e..76b354805c 100644
--- a/scene/2d/camera_2d.cpp
+++ b/scene/2d/camera_2d.cpp
@@ -439,7 +439,7 @@ void Camera2D::clear_current() {
void Camera2D::set_limit(Side p_side, int p_limit) {
ERR_FAIL_INDEX((int)p_side, 4);
limit[p_side] = p_limit;
- update();
+ _update_scroll();
}
int Camera2D::get_limit(Side p_side) const {