mirror of
https://github.com/Relintai/voxelman.git
synced 2025-01-25 15:09:18 +01:00
Fix building for 3.2.
This commit is contained in:
parent
073e1aeb97
commit
a722f807fe
@ -29,6 +29,7 @@ SOFTWARE.
|
|||||||
|
|
||||||
#if VERSION_MAJOR < 4
|
#if VERSION_MAJOR < 4
|
||||||
#include "core/pool_vector.h"
|
#include "core/pool_vector.h"
|
||||||
|
#include "scene/3d/mesh_instance.h"
|
||||||
#else
|
#else
|
||||||
#include "core/vector.h"
|
#include "core/vector.h"
|
||||||
|
|
||||||
|
@ -24,14 +24,12 @@ SOFTWARE.
|
|||||||
|
|
||||||
#include "../../meshers/blocky/voxel_mesher_blocky.h"
|
#include "../../meshers/blocky/voxel_mesher_blocky.h"
|
||||||
|
|
||||||
|
|
||||||
#include "core/version.h"
|
#include "core/version.h"
|
||||||
|
|
||||||
#if VERSION_MAJOR >= 4
|
#if VERSION_MAJOR >= 4
|
||||||
#define POOL_BYTE_ARRAY PACKED_BYTE_ARRAY
|
#define POOL_BYTE_ARRAY PACKED_BYTE_ARRAY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
VoxelChunkBlocky::VoxelChunkBlocky() {
|
VoxelChunkBlocky::VoxelChunkBlocky() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -62,7 +60,7 @@ void VoxelChunkBlocky::_create_meshers() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void VoxelChunkBlocky::_bind_methods() {
|
void VoxelChunkBlocky::_bind_methods() {
|
||||||
ADD_PROPERTYI(PropertyInfo(Variant::PACKED_BYTE_ARRAY, "data_channel"), "set_channel_compressed", "get_channel_compressed", 0);
|
ADD_PROPERTYI(PropertyInfo(Variant::POOL_BYTE_ARRAY, "data_channel"), "set_channel_compressed", "get_channel_compressed", 0);
|
||||||
|
|
||||||
//ClassDB::bind_method(D_METHOD("get_channel_compressed", "channel_index"), &VoxelChunk::get_channel_compressed);
|
//ClassDB::bind_method(D_METHOD("get_channel_compressed", "channel_index"), &VoxelChunk::get_channel_compressed);
|
||||||
//ClassDB::bind_method(D_METHOD("set_channel_compressed", "channel_index", "array"), &VoxelChunk::set_channel_compressed);
|
//ClassDB::bind_method(D_METHOD("set_channel_compressed", "channel_index", "array"), &VoxelChunk::set_channel_compressed);
|
||||||
|
Loading…
Reference in New Issue
Block a user