Only build CSGGizmos when building the editor.

This commit is contained in:
Relintai 2023-07-11 12:18:08 +02:00
parent c87b5e57f0
commit 719de5d54e
4 changed files with 8 additions and 2 deletions

View File

@ -9,3 +9,6 @@ env_csg = env_modules.Clone()
env_csg.add_source_files(env.modules_sources, "*.cpp")
env_csg.add_source_files(env.modules_sources, "geometry_parser/*.cpp")
if env["tools"]:
env_csg.add_source_files(env.modules_sources, "editor/*.cpp")

View File

@ -31,7 +31,7 @@
#ifndef CSG_GIZMOS_H
#define CSG_GIZMOS_H
#include "csg_shape.h"
#include "../csg_shape.h"
#include "editor/editor_plugin.h"
#include "editor/spatial_editor_gizmos.h"

View File

@ -30,7 +30,10 @@
#include "register_types.h"
#include "csg_gizmos.h"
#ifdef TOOLS_ENABLED
#include "./editor/csg_gizmos.h"
#endif
#include "csg_shape.h"
#include "modules/csg/geometry_parser/csgshape3d_navigation_geometry_parser_3d.h"