mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-10 13:52:38 +02:00
Moved from the TERRAMAN_2D_PRESENT define to the module system's equivalent define aswell.
This commit is contained in:
parent
7357a4f65c
commit
029a6671b4
@ -6,9 +6,6 @@ module_env = env.Clone()
|
|||||||
|
|
||||||
import version
|
import version
|
||||||
|
|
||||||
if os.path.isdir('../terraman_2d'):
|
|
||||||
module_env.Append(CPPDEFINES=['TERRAMAN_2D_PRESENT'])
|
|
||||||
|
|
||||||
sources = [
|
sources = [
|
||||||
|
|
||||||
"register_types.cpp",
|
"register_types.cpp",
|
||||||
|
@ -871,7 +871,7 @@ void Prop2DMesher::bake_colors_lights() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TERRAMAN_2D_PRESENT
|
#ifdef MODULE_TERRAMAN_2D_ENABLED
|
||||||
void Prop2DMesher::bake_lights(MeshInstance *node, Vector<Ref<Terrain2DLight>> &lights) {
|
void Prop2DMesher::bake_lights(MeshInstance *node, Vector<Ref<Terrain2DLight>> &lights) {
|
||||||
/*
|
/*
|
||||||
ERR_FAIL_COND(node == NULL);
|
ERR_FAIL_COND(node == NULL);
|
||||||
|
@ -41,7 +41,7 @@ SOFTWARE.
|
|||||||
#include "../mesh_data_resource/mesh_data_resource.h"
|
#include "../mesh_data_resource/mesh_data_resource.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef TERRAMAN_2D_PRESENT
|
#ifdef MODULE_TERRAMAN_2D_ENABLED
|
||||||
#include "../terraman_2d/data/terrain_2d_light.h"
|
#include "../terraman_2d/data/terrain_2d_light.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -149,7 +149,7 @@ public:
|
|||||||
void bake_colors_lights_rao();
|
void bake_colors_lights_rao();
|
||||||
void bake_colors_lights();
|
void bake_colors_lights();
|
||||||
|
|
||||||
#ifdef TERRAMAN_2D_PRESENT
|
#ifdef MODULE_TERRAMAN_2D_ENABLED
|
||||||
void bake_lights(MeshInstance *node, Vector<Ref<Terrain2DLight>> &lights);
|
void bake_lights(MeshInstance *node, Vector<Ref<Terrain2DLight>> &lights);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user