Get rid of gridmap error due to not yet valid cursor instance, fixes #17546
(cherry picked from commit 8306d60e85
)
This commit is contained in:
parent
586b73adf7
commit
9c8d84ed6c
|
@ -770,7 +770,9 @@ void GridMapEditor::edit(GridMap *p_gridmap) {
|
||||||
VisualServer::get_singleton()->instance_set_visible(grid_instance[i], false);
|
VisualServer::get_singleton()->instance_set_visible(grid_instance[i], false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cursor_instance.is_valid()) {
|
||||||
VisualServer::get_singleton()->instance_set_visible(cursor_instance, false);
|
VisualServer::get_singleton()->instance_set_visible(cursor_instance, false);
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue