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

Prevent errors when drawing debug meshes with no mesh data. #101014

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BattyBovine
Copy link

Adds a few checks to ensure a debug collision mesh contains mesh data before attempting to add it to the gizmo draw list. This prevents errors when using SeparationRayShape3D, which is only intended to draw a single line, and contains no mesh data.

Closes #100665

This fixes the same issue as #100968, just using a different method that performs a check for null mesh data before adding the debug mesh. This is probably the more proper fix, but I'll leave the other pull request open for now.

@AThousandShips
Copy link
Member

Your commit seems not to be linked to your GitHub account. See: Why are my commits linked to the wrong user? for more info.

Adds a few checks to ensure a debug collision mesh contains mesh data before
attempting to add it to the gizmo draw list. This prevents errors when using
SeparationRayShape3D, which is only intended to draw a single line, and
contains no mesh data.

Closes godotengine#100665
@BattyBovine BattyBovine force-pushed the cs3d-separation-ray-fix-2 branch from 778571c to a7810e8 Compare January 2, 2025 21:18
@BattyBovine
Copy link
Author

Your commit seems not to be linked to your GitHub account.

This should be fixed now.

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.4 dev7] Seperation Ray causes Mesh surface errors
2 participants