Fix compilation
- Node was not declared anymore in header - Cannot implicitely cast Variant to Node* anymore
This commit is contained in:
parent
771992c274
commit
1631e186b5
@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
#include "voxel_tool.h"
|
#include "voxel_tool.h"
|
||||||
|
|
||||||
|
class Node;
|
||||||
|
|
||||||
namespace zylann::voxel {
|
namespace zylann::voxel {
|
||||||
|
|
||||||
class VoxelLodTerrain;
|
class VoxelLodTerrain;
|
||||||
|
@ -53,7 +53,7 @@ void VoxelGraphEditorPlugin::edit(Object *p_object) {
|
|||||||
VoxelNode *voxel_node = nullptr;
|
VoxelNode *voxel_node = nullptr;
|
||||||
Array selected_nodes = get_editor_interface()->get_selection()->get_selected_nodes();
|
Array selected_nodes = get_editor_interface()->get_selection()->get_selected_nodes();
|
||||||
for (int i = 0; i < selected_nodes.size(); ++i) {
|
for (int i = 0; i < selected_nodes.size(); ++i) {
|
||||||
Node *node = selected_nodes[i];
|
Node *node = Object::cast_to<Node>(selected_nodes[i]);
|
||||||
ERR_FAIL_COND(node == nullptr);
|
ERR_FAIL_COND(node == nullptr);
|
||||||
VoxelNode *vn = Object::cast_to<VoxelNode>(node);
|
VoxelNode *vn = Object::cast_to<VoxelNode>(node);
|
||||||
if (vn != nullptr && vn->get_generator() == graph_ptr) {
|
if (vn != nullptr && vn->get_generator() == graph_ptr) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user