Fix hiding controls not calling EditorUnfocus

main
copygirl 2 months ago
parent 6f54e2706e
commit 6a710a7c05
  1. 3
      addons/terrain-editing/terrain_editing_plugin.gd

@ -15,6 +15,9 @@ func _make_visible(visible: bool) -> void:
add_control_to_container(CONTAINER, controls) add_control_to_container(CONTAINER, controls)
elif controls and controls.get_parent(): elif controls and controls.get_parent():
remove_control_from_container(CONTAINER, controls) 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: func _forward_3d_gui_input(camera: Camera3D, event: InputEvent) -> int:
var position := Vector3.ZERO var position := Vector3.ZERO

Loading…
Cancel
Save