@ -15,6 +15,9 @@ func _make_visible(visible: bool) -> void:
add_control_to_container(CONTAINER, controls)
elif controls and controls.get_parent():
remove_control_from_container(CONTAINER, controls)
if current_terrain:
current_terrain.EditorUnfocus()
current_terrain = null
func _forward_3d_gui_input(camera: Camera3D, event: InputEvent) -> int:
var position := Vector3.ZERO