Set the property hint for voxel_world to 0. This fixes saving chunks as resoruces.

This commit is contained in:
Relintai 2020-04-02 21:38:19 +02:00
parent 9da5d2e2d0
commit 6cae9a0494

View File

@ -895,7 +895,7 @@ void VoxelChunk::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_voxel_world"), &VoxelChunk::get_voxel_world);
ClassDB::bind_method(D_METHOD("set_voxel_world", "world"), &VoxelChunk::set_voxel_world_bind);
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "voxel_world", PROPERTY_HINT_RESOURCE_TYPE, "VoxelWorld"), "set_voxel_world", "get_voxel_world");
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "voxel_world", PROPERTY_HINT_RESOURCE_TYPE, "VoxelWorld", 0), "set_voxel_world", "get_voxel_world");
//Voxel Data
ClassDB::bind_method(D_METHOD("setup_channels"), &VoxelChunk::setup_channels);