mirror of
https://github.com/Relintai/voxelman.git
synced 2024-11-12 10:15:12 +01:00
Set the property hint for voxel_world to 0. This fixes saving chunks as resoruces.
This commit is contained in:
parent
9da5d2e2d0
commit
6cae9a0494
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user