Skip to content
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

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

Deozaan
Copy link

@Deozaan Deozaan commented Dec 1, 2022

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.

@Deozaan Deozaan requested review from a team as code owners December 1, 2022 01:47
@aaronfranke aaronfranke added this to the 3.x milestone Dec 1, 2022
@Deozaan Deozaan force-pushed the get-camera-2d-3.x branch 4 times, most recently from eb30286 to 56933a3 Compare December 3, 2022 06:35
@Deozaan Deozaan requested review from a team as code owners January 6, 2023 11:00
@Deozaan
Copy link
Author

Deozaan commented Jan 6, 2023

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?

@Deozaan Deozaan force-pushed the get-camera-2d-3.x branch from b72083d to 44cf165 Compare January 6, 2023 11:08
@Deozaan
Copy link
Author

Deozaan commented Jan 6, 2023

I think I fixed it.

@YeldhamDev YeldhamDev removed request for a team January 6, 2023 11:34
Comment on lines 63 to 68
<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>
Copy link
Member

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.

Copy link
Author

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.

@Deozaan Deozaan force-pushed the get-camera-2d-3.x branch from 44cf165 to a22eadd Compare January 6, 2023 22:00
@@ -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">
Copy link
Member

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.

Copy link
Author

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
@Deozaan Deozaan force-pushed the get-camera-2d-3.x branch from a22eadd to 6a38a1b Compare January 6, 2023 22:20
@akien-mga akien-mga changed the title Add viewport.get_camera_2d() in 3.x [3.x] Add viewport.get_camera_2d() in 3.x Apr 25, 2024
@akien-mga akien-mga changed the title [3.x] Add viewport.get_camera_2d() in 3.x [3.x] Add viewport.get_camera_2d() Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants