summaryrefslogtreecommitdiff
path: root/modules/csg/SCsub
diff options
context:
space:
mode:
Diffstat (limited to 'modules/csg/SCsub')
-rw-r--r--modules/csg/SCsub2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/csg/SCsub b/modules/csg/SCsub
index 55f859db11..1cf9974fc1 100644
--- a/modules/csg/SCsub
+++ b/modules/csg/SCsub
@@ -7,5 +7,5 @@ env_csg = env_modules.Clone()
# Godot source files
env_csg.add_source_files(env.modules_sources, "*.cpp")
-if env["tools"]:
+if env.editor_build:
env_csg.add_source_files(env.modules_sources, "editor/*.cpp")