mirror of
https://github.com/godotengine/godot.git
synced 2025-02-23 23:15:07 +08:00
Fix condition on 'jump to limits' logic
This is a fix for: #54856
(cherry picked from commit 7257bb6ad0
)
This commit is contained in:
parent
93fe9ecb97
commit
2e1646e484
@ -197,7 +197,7 @@ Transform2D Camera2D::get_camera_transform() {
|
||||
|
||||
Rect2 screen_rect(-screen_offset + ret_camera_pos, screen_size * zoom);
|
||||
|
||||
if (!limit_smoothing_enabled) {
|
||||
if (!smoothing_enabled || !limit_smoothing_enabled) {
|
||||
if (screen_rect.position.x < limit[MARGIN_LEFT]) {
|
||||
screen_rect.position.x = limit[MARGIN_LEFT];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user