mirror of
https://github.com/Relintai/voxelman.git
synced 2025-04-25 21:25:00 +02:00
Fix compile for 4.0.
This commit is contained in:
parent
90fe105b54
commit
e42931597c
@ -31,6 +31,12 @@ SOFTWARE.
|
|||||||
#include "core/resource.h"
|
#include "core/resource.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "../../defines.h"
|
||||||
|
|
||||||
|
#if GODOT4
|
||||||
|
#define Texture Texture2D
|
||||||
|
#endif
|
||||||
|
|
||||||
class VoxelChunk;
|
class VoxelChunk;
|
||||||
|
|
||||||
#if THREAD_POOL_PRESENT
|
#if THREAD_POOL_PRESENT
|
||||||
|
@ -22,8 +22,6 @@ SOFTWARE.
|
|||||||
|
|
||||||
#include "voxel_terrarin_job.h"
|
#include "voxel_terrarin_job.h"
|
||||||
|
|
||||||
#include "../../defines.h"
|
|
||||||
|
|
||||||
#include "../../library/voxel_surface.h"
|
#include "../../library/voxel_surface.h"
|
||||||
#include "../../library/voxelman_library.h"
|
#include "../../library/voxelman_library.h"
|
||||||
|
|
||||||
@ -176,7 +174,6 @@ void VoxelTerrarinJob::phase_collider() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Engine::get_singleton()->is_editor_hint()) {
|
if (Engine::get_singleton()->is_editor_hint()) {
|
||||||
|
|
||||||
starti = 0;
|
starti = 0;
|
||||||
|
|
||||||
if (has_meta("bpc_laa")) {
|
if (has_meta("bpc_laa")) {
|
||||||
@ -346,7 +343,6 @@ void VoxelTerrarinJob::phase_terrarin_mesh() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (mesher->get_vertex_count() == 0 && liquid_mesher.is_valid() && liquid_mesher->get_vertex_count() == 0) {
|
if (mesher->get_vertex_count() == 0 && liquid_mesher.is_valid() && liquid_mesher->get_vertex_count() == 0) {
|
||||||
|
|
||||||
if (has_meta("bptm_ulm")) {
|
if (has_meta("bptm_ulm")) {
|
||||||
remove_meta("bptm_ulm");
|
remove_meta("bptm_ulm");
|
||||||
}
|
}
|
||||||
@ -370,7 +366,6 @@ void VoxelTerrarinJob::phase_terrarin_mesh() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (mesher->get_vertex_count() != 0) {
|
if (mesher->get_vertex_count() != 0) {
|
||||||
|
|
||||||
if (should_do()) {
|
if (should_do()) {
|
||||||
temp_mesh_arr = mesher->build_mesh();
|
temp_mesh_arr = mesher->build_mesh();
|
||||||
|
|
||||||
|
@ -25,6 +25,12 @@ SOFTWARE.
|
|||||||
|
|
||||||
#include "voxel_job.h"
|
#include "voxel_job.h"
|
||||||
|
|
||||||
|
#include "../../defines.h"
|
||||||
|
|
||||||
|
#include pool_vector_h
|
||||||
|
|
||||||
|
include_pool_vector
|
||||||
|
|
||||||
class VoxelMesher;
|
class VoxelMesher;
|
||||||
|
|
||||||
class VoxelTerrarinJob : public VoxelJob {
|
class VoxelTerrarinJob : public VoxelJob {
|
||||||
|
Loading…
Reference in New Issue
Block a user