Godot Engine – Multi-platform 2D and 3D game engine
Allow NavigationMesh to exist even when 2D module is disabled.
ALi.w5a9be8b534ce
diff --git a/scene/register_scene_types.cpp b/scene/register_scene_types.cppindex 3014792dde5..b6481aa7ab5 100644--- a/scene/register_scene_types.cpp+++ b/scene/register_scene_types.cpp@@ -1068,10 +1068,14 @@ void register_scene_types() {GDREGISTER_CLASS(ConcavePolygonShape2D);#endif // PHYSICS_2D_DISABLED+#endif // _2D_DISABLED+#if !defined(NAVIGATION_2D_DISABLED) || !defined(NAVIGATION_3D_DISABLED)GDREGISTER_CLASS(NavigationMesh);#endif // !defined(NAVIGATION_2D_DISABLED) || !defined(NAVIGATION_3D_DISABLED)+#ifndef _2D_DISABLED+#ifndef NAVIGATION_2D_DISABLEDGDREGISTER_CLASS(NavigationMeshSourceGeometryData2D);GDREGISTER_CLASS(NavigationPolygon);