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

Fix Subviewport keeps using removed Camera3D child. #93377

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

EAinsley
Copy link
Contributor

Fix #92869

_camera_3d_remove() changed camera_3d directly instead of calling _camera_3d_set(), which failed to change the camera in RendererViewport. Now use _camera_3d_set() instead.

_.subviewport.tscn.-.Testing.-.Godot.Engine.2024-06-20.14-49-33.mp4

@EAinsley EAinsley requested a review from a team as a code owner June 20, 2024 07:18
@akien-mga akien-mga added this to the 4.3 milestone Jun 20, 2024
@akien-mga akien-mga added the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Jun 20, 2024
scene/main/viewport.cpp Outdated Show resolved Hide resolved
@akien-mga akien-mga merged commit f7d1e39 into godotengine:master Jun 20, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks! And congrats for your first merged Godot contribution 🎉

@EAinsley EAinsley deleted the fix#92869 branch June 20, 2024 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release topic:core topic:3d
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subviewport keeps using Camera3D when the Camera3D is no longer its child
3 participants