Skip to content

Commit

Permalink
Fix "Setup navigation" removing Terrain3D children
Browse files Browse the repository at this point in the history
  • Loading branch information
TokisanGames committed Dec 21, 2024
1 parent 54136e4 commit c47803f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions project/addons/terrain_3d/src/baker.gd
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,8 @@ func _do_set_up_navigation(p_nav_region: NavigationRegion3D, p_terrain: Terrain3
var index: int = p_terrain.get_index()
var t_owner: Node = p_terrain.owner

parent.remove_child(p_terrain)
p_nav_region.add_child(p_terrain)

parent.add_child(p_nav_region, true)
p_terrain.reparent(p_nav_region)
parent.move_child(p_nav_region, index)

p_nav_region.owner = t_owner
Expand Down

0 comments on commit c47803f

Please sign in to comment.