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 compiling with 3D disabled due to unused navigation variable #81295

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

aaronfranke
Copy link
Member

In the current master, Godot does not compile with 3D disabled scons target=template_debug disable_3d=yes, at least it fails with Clang, due to an unused variable. This PR fixes that.

[ 51%] In file included from modules/navigation/godot_navigation_server.cpp:31:
modules/navigation/godot_navigation_server.h:83:22: error: private field 'navmesh_generator_3d' is not used [-Werror,-Wunused-private-field]
        NavMeshGenerator3D *navmesh_generator_3d = nullptr;
                            ^
1 error generated.

@YuriSizov YuriSizov merged commit d909181 into godotengine:master Sep 5, 2023
15 checks passed
@YuriSizov
Copy link
Contributor

Thanks!

@aaronfranke aaronfranke deleted the fix-compile-no-3d branch September 5, 2023 15:49
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.

3 participants