Fix building for 3.2.

This commit is contained in:
Relintai 2020-04-09 15:45:51 +02:00
parent 073e1aeb97
commit a722f807fe
2 changed files with 2 additions and 3 deletions

View File

@ -29,6 +29,7 @@ SOFTWARE.
#if VERSION_MAJOR < 4
#include "core/pool_vector.h"
#include "scene/3d/mesh_instance.h"
#else
#include "core/vector.h"

View File

@ -24,14 +24,12 @@ SOFTWARE.
#include "../../meshers/blocky/voxel_mesher_blocky.h"
#include "core/version.h"
#if VERSION_MAJOR >= 4
#define POOL_BYTE_ARRAY PACKED_BYTE_ARRAY
#endif
VoxelChunkBlocky::VoxelChunkBlocky() {
}
@ -62,7 +60,7 @@ void VoxelChunkBlocky::_create_meshers() {
}
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("set_channel_compressed", "channel_index", "array"), &VoxelChunk::set_channel_compressed);