From dfafb2334266e6df4c7ddb850ead09328337c266 Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 31 Mar 2020 12:42:22 +0200 Subject: [PATCH] VoxelChunk now won't expose the channels for the editor. This functionality should be implemented per chunk implementation. Did not delete the code yet, just commented it out. --- world/voxel_chunk.cpp | 2 ++ world/voxel_chunk.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/world/voxel_chunk.cpp b/world/voxel_chunk.cpp index ca9300c..3ebe4c0 100644 --- a/world/voxel_chunk.cpp +++ b/world/voxel_chunk.cpp @@ -675,6 +675,7 @@ VoxelChunk::~VoxelChunk() { } } +/* bool VoxelChunk::_set(const StringName &p_name, const Variant &p_value) { String name = p_name; @@ -717,6 +718,7 @@ void VoxelChunk::_get_property_list(List *p_list) const { p_list->push_back(PropertyInfo(Variant::POOL_BYTE_ARRAY, "channels/" + String::num(i), PROPERTY_HINT_NONE, "", PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_INTERNAL)); } } +*/ void VoxelChunk::_bind_methods() { ADD_SIGNAL(MethodInfo("mesh_generation_finished", PropertyInfo(Variant::OBJECT, "chunk", PROPERTY_HINT_RESOURCE_TYPE, "VoxelChunk"))); diff --git a/world/voxel_chunk.h b/world/voxel_chunk.h index e661225..11f84bd 100644 --- a/world/voxel_chunk.h +++ b/world/voxel_chunk.h @@ -193,9 +193,11 @@ public: ~VoxelChunk(); protected: + /* bool _set(const StringName &p_name, const Variant &p_value); bool _get(const StringName &p_name, Variant &r_ret) const; void _get_property_list(List *p_list) const; + */ static void _bind_methods(); bool _is_generating;