summaryrefslogtreecommitdiffstats
path: root/servers/extensions
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2024-02-26 06:34:53 -0600
committerAaron Franke <arnfranke@yahoo.com>2024-03-11 01:00:55 -0700
commit6aac3e4a164457bfb08ff03d29313b84aedc607e (patch)
tree9c555a7a4cc1b355302c2485b9b65fba729fead3 /servers/extensions
parent810f127022ec2cbfb288e436151d1a777c7b5da7 (diff)
downloadredot-engine-6aac3e4a164457bfb08ff03d29313b84aedc607e.tar.gz
Disable all 3D nodes, physics, and resources when compiling without 3D
Diffstat (limited to 'servers/extensions')
-rw-r--r--servers/extensions/SCsub5
1 files changed, 4 insertions, 1 deletions
diff --git a/servers/extensions/SCsub b/servers/extensions/SCsub
index ba73353f2a..95c7f5d319 100644
--- a/servers/extensions/SCsub
+++ b/servers/extensions/SCsub
@@ -4,4 +4,7 @@ Import("env")
env_object = env.Clone()
-env_object.add_source_files(env.servers_sources, "*.cpp")
+env_object.add_source_files(env.servers_sources, "physics_server_2d_extension.cpp")
+
+if not env["disable_3d"]:
+ env_object.add_source_files(env.servers_sources, "physics_server_3d_extension.cpp")