Fix compile after recent changes in Terraman.

This commit is contained in:
Relintai 2022-02-08 14:00:25 +01:00
parent 73dae84e9b
commit ce369408ca
2 changed files with 4 additions and 4 deletions

View File

@ -1001,7 +1001,7 @@ void PropMesher::bake_colors_lights() {
}
#ifdef TERRAMAN_PRESENT
void PropMesher::bake_lights(MeshInstance *node, Vector<Ref<TerraLight>> &lights) {
void PropMesher::bake_lights(MeshInstance *node, Vector<Ref<TerrainLight>> &lights) {
ERR_FAIL_COND(node == NULL);
Color darkColor(0, 0, 0, 1);
@ -1018,7 +1018,7 @@ void PropMesher::bake_lights(MeshInstance *node, Vector<Ref<TerraLight>> &lights
//calculate the lights value
for (int i = 0; i < lights.size(); ++i) {
Ref<TerraLight> light = lights.get(i);
Ref<TerrainLight> light = lights.get(i);
Vector3 lightDir = light->get_world_position() - vertex;

View File

@ -57,7 +57,7 @@ using PoolVector = Vector<N>;
#endif
#ifdef TERRAMAN_PRESENT
#include "../terraman/data/terra_light.h"
#include "../terraman/data/terrain_light.h"
#endif
class OpenSimplexNoise;
@ -173,7 +173,7 @@ public:
void bake_colors_lights();
#ifdef TERRAMAN_PRESENT
void bake_lights(MeshInstance *node, Vector<Ref<TerraLight>> &lights);
void bake_lights(MeshInstance *node, Vector<Ref<TerrainLight>> &lights);
#endif
Array build_mesh();