From b07fd288b2e8dcf3fcead10bf0111f00cfc85fcd Mon Sep 17 00:00:00 2001
From: Joseph Walton-Rivers <joseph@walton-rivers.uk>
Date: Sat, 20 Aug 2022 10:00:27 +0100
Subject: [PATCH] don't load bullet if module is not available

---
 demo/demo/main.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/demo/demo/main.cpp b/demo/demo/main.cpp
index 6e20bfc..ff9e602 100644
--- a/demo/demo/main.cpp
+++ b/demo/demo/main.cpp
@@ -85,7 +85,9 @@ int main(int argc, const char* argv[]) {
 	moduleManager.use<fggl::display::GLFW>();
 	moduleManager.use<fggl::assets::AssetFolders>();
 	moduleManager.use<fggl::entity::ECS>();
-	moduleManager.use<fggl::phys::Bullet3>();
+	#ifdef FGGL_MODULE_BULLET
+		moduleManager.use<fggl::phys::Bullet3>();
+	#endif
 	moduleManager.resolve();
 
 	// create the application
-- 
GitLab