Update camera position when updating camera limit

This commit is contained in:
Marcel Admiraal 2022-07-16 15:50:27 +01:00 committed by Relintai
parent ef7646924a
commit e2987f8914

View File

@ -438,7 +438,7 @@ void Camera2D::clear_current() {
void Camera2D::set_limit(Margin p_margin, int p_limit) {
ERR_FAIL_INDEX((int)p_margin, 4);
limit[p_margin] = p_limit;
update();
_update_scroll();
}
int Camera2D::get_limit(Margin p_margin) const {