Merge pull request #36689 from eevee/patch-1
Fix inverted use of Camera2D.offset_v
This commit is contained in:
commit
da8a0913f4
|
@ -128,9 +128,9 @@ Transform2D Camera2D::get_camera_transform() {
|
|||
} else {
|
||||
|
||||
if (v_ofs < 0) {
|
||||
camera_pos.y = new_camera_pos.y + screen_size.y * 0.5 * drag_margin[MARGIN_TOP] * v_ofs;
|
||||
} else {
|
||||
camera_pos.y = new_camera_pos.y + screen_size.y * 0.5 * drag_margin[MARGIN_BOTTOM] * v_ofs;
|
||||
} else {
|
||||
camera_pos.y = new_camera_pos.y + screen_size.y * 0.5 * drag_margin[MARGIN_TOP] * v_ofs;
|
||||
}
|
||||
|
||||
v_offset_changed = false;
|
||||
|
|
Loading…
Reference in New Issue