mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 11:56:49 +01:00
Also mvoed away from the TERRAMAN_PRESENT define.
This commit is contained in:
parent
14c44e5727
commit
73742e947d
@ -4,9 +4,6 @@ Import('env')
|
||||
|
||||
module_env = env.Clone()
|
||||
|
||||
if os.path.isdir('../terraman'):
|
||||
module_env.Append(CPPDEFINES=['TERRAMAN_PRESENT'])
|
||||
|
||||
sources = [
|
||||
|
||||
"register_types.cpp",
|
||||
|
@ -9,9 +9,6 @@ import version
|
||||
if os.path.isdir('../mesh_data_resource'):
|
||||
module_env.Append(CPPDEFINES=['MESH_DATA_RESOURCE_PRESENT'])
|
||||
|
||||
if os.path.isdir('../terraman'):
|
||||
module_env.Append(CPPDEFINES=['TERRAMAN_PRESENT'])
|
||||
|
||||
if os.path.isdir('../mesh_utils'):
|
||||
module_env.Append(CPPDEFINES=['MESH_UTILS_PRESENT'])
|
||||
|
||||
|
@ -28,6 +28,8 @@ SOFTWARE.
|
||||
#include "material_cache/prop_material_cache.h"
|
||||
#include "tiled_wall/tiled_wall_data.h"
|
||||
|
||||
#include "modules/modules_enabled.gen.h"
|
||||
|
||||
const String PropMesher::BINDING_STRING_BUILD_FLAGS = "Use Lighting,Use AO,Use RAO,Bake Lights";
|
||||
|
||||
bool PropMesher::Vertex::operator==(const Vertex &p_vertex) const {
|
||||
@ -1101,7 +1103,7 @@ void PropMesher::bake_colors_lights() {
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef TERRAMAN_PRESENT
|
||||
#ifdef MODULE_TERRAMAN_ENABLED
|
||||
void PropMesher::bake_lights(MeshInstance *node, Vector<Ref<TerrainLight>> &lights) {
|
||||
ERR_FAIL_COND(node == NULL);
|
||||
|
||||
|
@ -35,11 +35,13 @@ SOFTWARE.
|
||||
#include "scene/resources/material.h"
|
||||
#include "scene/resources/mesh.h"
|
||||
|
||||
#include "modules/modules_enabled.gen.h"
|
||||
|
||||
#ifdef MESH_DATA_RESOURCE_PRESENT
|
||||
#include "../mesh_data_resource/mesh_data_resource.h"
|
||||
#endif
|
||||
|
||||
#ifdef TERRAMAN_PRESENT
|
||||
#ifdef MODULE_TERRAMAN_ENABLED
|
||||
#include "../terraman/data/terrain_light.h"
|
||||
#endif
|
||||
|
||||
@ -157,7 +159,7 @@ public:
|
||||
void bake_colors_lights_rao();
|
||||
void bake_colors_lights();
|
||||
|
||||
#ifdef TERRAMAN_PRESENT
|
||||
#ifdef MODULE_TERRAMAN_ENABLED
|
||||
void bake_lights(MeshInstance *node, Vector<Ref<TerrainLight>> &lights);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user