Skip to content

Commit

Permalink
Move 2D-only navigation code to its own subfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronfranke committed Feb 26, 2024
1 parent 99addd6 commit fd582dc
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
#ifndef GODOT_NAVIGATION_SERVER_2D_H
#define GODOT_NAVIGATION_SERVER_2D_H

#include "nav_agent.h"
#include "nav_link.h"
#include "nav_map.h"
#include "nav_obstacle.h"
#include "nav_region.h"
#include "../nav_agent.h"
#include "../nav_link.h"
#include "../nav_map.h"
#include "../nav_obstacle.h"
#include "../nav_region.h"

#include "servers/navigation_server_2d.h"

Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions modules/navigation/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ env.modules_sources += thirdparty_obj
module_obj = []

env_navigation.add_source_files(module_obj, "*.cpp")
env_navigation.add_source_files(module_obj, "2d/*.cpp")
if env.editor_build:
env_navigation.add_source_files(module_obj, "editor/*.cpp")
env.modules_sources += module_obj
Expand Down
2 changes: 1 addition & 1 deletion modules/navigation/register_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

#include "register_types.h"

#include "2d/godot_navigation_server_2d.h"
#include "godot_navigation_server.h"
#include "godot_navigation_server_2d.h"

#ifndef DISABLE_DEPRECATED
#ifndef _3D_DISABLED
Expand Down

0 comments on commit fd582dc

Please sign in to comment.