Marc Gilleron 2020-11-21 19:07:30 +00:00
commit 57d09b5b7d
3 changed files with 3 additions and 2 deletions

1
.github/FUNDING.yml vendored Normal file
View File

@ -0,0 +1 @@
github: Zylann

View File

@ -410,7 +410,7 @@ void Voxel::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_transparent", "transparent"), &Voxel::set_transparent);
ClassDB::bind_method(D_METHOD("is_transparent"), &Voxel::is_transparent);
ClassDB::bind_method(D_METHOD("set_transparency_index", "transparent"), &Voxel::set_transparency_index);
ClassDB::bind_method(D_METHOD("set_transparency_index", "transparency_index"), &Voxel::set_transparency_index);
ClassDB::bind_method(D_METHOD("get_transparency_index"), &Voxel::get_transparency_index);
ClassDB::bind_method(D_METHOD("set_random_tickable", "rt"), &Voxel::set_random_tickable);

View File

@ -96,7 +96,7 @@ public:
_FORCE_INLINE_ bool is_transparent() const { return _transparency_index != 0; }
void set_transparency_index(int i);
uint8_t get_transparency_index() const { return _transparency_index; }
int get_transparency_index() const { return _transparency_index; }
void set_custom_mesh(Ref<Mesh> mesh);
Ref<Mesh> get_custom_mesh() const { return _custom_mesh; }