You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Add abort mechanism when invoking EditorNavigationMeshGenerator::bake in-game
This commit is contained in:
@@ -433,6 +433,11 @@ EditorNavigationMeshGenerator::~EditorNavigationMeshGenerator() {
|
|||||||
|
|
||||||
void EditorNavigationMeshGenerator::bake(Ref<NavigationMesh> p_nav_mesh, Node *p_node) {
|
void EditorNavigationMeshGenerator::bake(Ref<NavigationMesh> p_nav_mesh, Node *p_node) {
|
||||||
|
|
||||||
|
if (!Engine::get_singleton()->is_editor_hint()) {
|
||||||
|
ERR_PRINTS("Invoking EditorNavigationMeshGenerator::bake(...) in-game is not supported in Godot 3.2 or below. Aborting bake...");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ERR_FAIL_COND(!p_nav_mesh.is_valid());
|
ERR_FAIL_COND(!p_nav_mesh.is_valid());
|
||||||
|
|
||||||
EditorProgress ep("bake", TTR("Navigation Mesh Generator Setup:"), 11);
|
EditorProgress ep("bake", TTR("Navigation Mesh Generator Setup:"), 11);
|
||||||
|
|||||||
Reference in New Issue
Block a user