mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-22 17:17:17 +01:00
Update camera position when updating camera limit
This commit is contained in:
parent
ef7646924a
commit
e2987f8914
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user