summaryrefslogtreecommitdiff
path: root/modules/gridmap/SCsub
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gridmap/SCsub')
-rw-r--r--modules/gridmap/SCsub3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gridmap/SCsub b/modules/gridmap/SCsub
index 970ce534f0..52777235b8 100644
--- a/modules/gridmap/SCsub
+++ b/modules/gridmap/SCsub
@@ -5,4 +5,7 @@ Import("env_modules")
env_gridmap = env_modules.Clone()
+# Godot's own source files
env_gridmap.add_source_files(env.modules_sources, "*.cpp")
+if env["tools"]:
+ env_gridmap.add_source_files(env.modules_sources, "editor/*.cpp")