mirror of
https://github.com/Relintai/godot_voxel.git
synced 2024-11-19 02:47:18 +01:00
Update to latest Godot
This commit is contained in:
parent
40dcf89f57
commit
fdb61c9b62
@ -166,7 +166,7 @@ void Voxel::set_library(Ref<VoxelLibrary> lib) {
|
||||
VoxelLibrary *Voxel::get_library() const {
|
||||
Object *v = _library.get_ref();
|
||||
if (v)
|
||||
return v->cast_to<VoxelLibrary>();
|
||||
return Object::cast_to<VoxelLibrary>(v);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -122,7 +122,7 @@ Spatial *VoxelTerrain::get_viewer(NodePath path) const {
|
||||
Node *node = get_node(path);
|
||||
if (node == NULL)
|
||||
return NULL;
|
||||
return node->cast_to<Spatial>();
|
||||
return Object::cast_to<Spatial>(node);
|
||||
}
|
||||
|
||||
void VoxelTerrain::set_material(int id, Ref<Material> material) {
|
||||
|
Loading…
Reference in New Issue
Block a user