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

MeshInstance3D: Implement the use of overriden virtual _get_aabb #100808

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eimfach
Copy link

@eimfach eimfach commented Dec 25, 2024

This PR refers to Make GeometryInstance3D accessible for custom Geometry Scenes (and implementing the alternative approach)

There is a virtual method _get_aabb in VisualInstance3D->MeshInstance3D that cannot be used in GDScript anymore because it is routed to the Mesh. If there is no Mesh an empty AABB is returned. This PR fixes this so that if there is no Mesh, the GDScript overriden _get_aabb in MeshInstance3D is used.

[debug]meshinstance3d_get_aabb.zip

@eimfach eimfach requested a review from a team as a code owner December 25, 2024 16:28
@Chaosus Chaosus added this to the 4.4 milestone Dec 25, 2024
@Chaosus Chaosus added enhancement and removed bug labels Dec 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.

2 participants