egui: don't clear navmesh after routing is done

This commit is contained in:
Mikolaj Wielgus 2024-06-20 18:55:57 +02:00
parent 4540f5c96b
commit 5161eecd49
1 changed files with 4 additions and 4 deletions

View File

@ -129,14 +129,14 @@ impl Top {
Err(err) => return, Err(err) => return,
}; };
if let InvokerStatus::Finished = status {
break;
}
if let Execute::Autoroute(ref mut autoroute) = execute { if let Execute::Autoroute(ref mut autoroute) = execute {
shared_data_arc_mutex.lock().unwrap().navmesh = shared_data_arc_mutex.lock().unwrap().navmesh =
autoroute.navmesh().clone(); autoroute.navmesh().clone();
} }
if let InvokerStatus::Finished = status {
break;
}
}; };
}); });
} }