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

Add clear function to NavigationMesh / NavigationPolygon #79157

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

smix8
Copy link
Contributor

@smix8 smix8 commented Jul 7, 2023

Adds clear() function to NavigationMesh / NavigationPolygon.

Previously the NavigationMeshGenerator had the only convenient clear() function that did reset the arrays of polygon indices and vertices for the NavigationMesh resource in the navigation mesh baking process.

The resources only had this awkward way of clearing the internal arrays by calling the clear_polygons() function and calling a set_vertices() with an empty array.

@smix8 smix8 added this to the 4.2 milestone Jul 7, 2023
@smix8 smix8 requested a review from a team as a code owner July 7, 2023 14:03
Adds clear() function to NavigationMesh / NavigationPolygon.
@YuriSizov YuriSizov changed the title Add clear() function to NavigationMesh / NavigationPolygon Add clear function to NavigationMesh / NavigationPolygon Jul 24, 2023
@YuriSizov YuriSizov merged commit 52078dc into godotengine:master Jul 24, 2023
@YuriSizov
Copy link
Contributor

Thanks!

@smix8 smix8 deleted the navmesh_clear_4.x branch July 24, 2023 17:48
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