You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix Editor crash when MeshLibrary gets replaced while used in an open GridMap scene
This commit is contained in:
@@ -561,11 +561,13 @@ bool GridMap::_octant_update(const OctantKey &p_key) {
|
||||
NavigationServer::get_singleton()->region_set_navigation_layers(region, navigation_layers);
|
||||
NavigationServer::get_singleton()->region_set_navmesh(region, navmesh);
|
||||
NavigationServer::get_singleton()->region_set_transform(region, get_global_transform() * nm.xform);
|
||||
if (is_inside_tree()) {
|
||||
if (navigation) {
|
||||
NavigationServer::get_singleton()->region_set_map(region, navigation->get_rid());
|
||||
} else {
|
||||
NavigationServer::get_singleton()->region_set_map(region, get_world()->get_navigation_map());
|
||||
}
|
||||
}
|
||||
nm.region = region;
|
||||
|
||||
// add navigation debugmesh visual instances if debug is enabled
|
||||
|
||||
Reference in New Issue
Block a user