Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
da8a0913
Unverified
Commit
da8a0913
authored
Mar 03, 2020
by
Rémi Verschelde
Committed by
GitHub
Mar 03, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #36689 from eevee/patch-1
Fix inverted use of Camera2D.offset_v
parents
3c7d92c5
40816574
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
camera_2d.cpp
scene/2d/camera_2d.cpp
+2
-2
No files found.
scene/2d/camera_2d.cpp
View file @
da8a0913
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment