Merge branch 'master' of https://github.com/Zylann/godot_voxel
commit
57d09b5b7d
|
@ -0,0 +1 @@
|
|||
github: Zylann
|
|
@ -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);
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue