-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.x] Add viewport.get_camera_2d()
#69426
base: 3.x
Are you sure you want to change the base?
Conversation
9af98d2
to
038e568
Compare
eb30286
to
56933a3
Compare
Sorry, I'm not super familiar with working with git on large repositories with hundreds of contributors. I'm not sure what I did, but I broke something. I tried to update my repository to be compatible with the latest changes to this one and now many extra commits are showing up here. Can anyone explain to me what I did wrong, and more importantly, how to fix it? |
b72083d
to
44cf165
Compare
I think I fixed it. |
doc/classes/Camera2D.xml
Outdated
<method name="make_current"> | ||
<return type="void" /> | ||
<description> | ||
Make this the current 2D camera for the scene (viewport and layer), in case there are many cameras in the scene. | ||
</description> | ||
</method> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing these methods breaks compatibility, so it can't be done in the stable 3.x branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added them back in.
44cf165
to
a22eadd
Compare
doc/classes/Camera2D.xml
Outdated
@@ -94,7 +94,7 @@ | |||
<member name="anchor_mode" type="int" setter="set_anchor_mode" getter="get_anchor_mode" enum="Camera2D.AnchorMode" default="1"> | |||
The Camera2D's anchor point. See [enum AnchorMode] constants. | |||
</member> | |||
<member name="current" type="bool" setter="_set_current" getter="is_current" default="false"> | |||
<member name="current" type="bool" setter="set_current" getter="is_current" default="false"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing this also breaks compat.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed that back as well.
keep methods to preserve compatibility more compat fixes
a22eadd
to
6a38a1b
Compare
viewport.get_camera_2d()
in 3.x
viewport.get_camera_2d()
in 3.xviewport.get_camera_2d()
First time contributor here. Please guide me in pointing out anything I missed or correcting any mistakes I made. Thanks.
Backport of #38317 for 3.x.