Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/modifiers/intern/MOD_navmesh.cpp')
-rw-r--r--source/blender/modifiers/intern/MOD_navmesh.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/source/blender/modifiers/intern/MOD_navmesh.cpp b/source/blender/modifiers/intern/MOD_navmesh.cpp
index bc97023a58b..d32281c12b6 100644
--- a/source/blender/modifiers/intern/MOD_navmesh.cpp
+++ b/source/blender/modifiers/intern/MOD_navmesh.cpp
@@ -26,10 +26,20 @@
*
*/
#include <math.h>
-#include "Recast.h"
+
+#ifdef WITH_GAMEENGINE
+# include "Recast.h"
+#endif
extern "C"{
-#include "ED_navmesh_conversion.h"
+
+#ifdef WITH_GAMEENGINE
+# include "ED_navmesh_conversion.h"
+# include "BIF_gl.h"
+# include "GPU_buffers.h"
+# include "GPU_draw.h"
+# include "UI_resources.h"
+#endif
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
@@ -43,10 +53,6 @@ extern "C"{
#include "BKE_particle.h"
#include "BKE_customdata.h"
#include "MEM_guardedalloc.h"
-#include "BIF_gl.h"
-#include "GPU_buffers.h"
-#include "GPU_draw.h"
-#include "UI_resources.h"
static void initData(ModifierData *md)
{