mirror of
https://github.com/Relintai/godot_voxel.git
synced 2025-05-01 17:57:55 +02: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 {
|
VoxelLibrary *Voxel::get_library() const {
|
||||||
Object *v = _library.get_ref();
|
Object *v = _library.get_ref();
|
||||||
if (v)
|
if (v)
|
||||||
return v->cast_to<VoxelLibrary>();
|
return Object::cast_to<VoxelLibrary>(v);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ Spatial *VoxelTerrain::get_viewer(NodePath path) const {
|
|||||||
Node *node = get_node(path);
|
Node *node = get_node(path);
|
||||||
if (node == NULL)
|
if (node == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
return node->cast_to<Spatial>();
|
return Object::cast_to<Spatial>(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
void VoxelTerrain::set_material(int id, Ref<Material> material) {
|
void VoxelTerrain::set_material(int id, Ref<Material> material) {
|
||||||
|
Loading…
Reference in New Issue
Block a user