From 8cdb7bccee9ed7b09cabb4ba0bcaedba31271510 Mon Sep 17 00:00:00 2001 From: "Sean, Otto" Date: Sat, 16 Nov 2024 23:34:18 +0000 Subject: [PATCH] window.move_to_foreground() deprecated in 4.3, changing to window.grab_focus() --- project/addons/terrain_3d/src/channel_packer.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/addons/terrain_3d/src/channel_packer.gd b/project/addons/terrain_3d/src/channel_packer.gd index 41d59105..1a9ce004 100644 --- a/project/addons/terrain_3d/src/channel_packer.gd +++ b/project/addons/terrain_3d/src/channel_packer.gd @@ -47,7 +47,7 @@ var normal_vector: Vector3 func pack_textures_popup() -> void: if window != null: window.show() - window.move_to_foreground() + window.grab_focus() window.move_to_center() return window = (load(WINDOW_SCENE) as PackedScene).instantiate() @@ -370,7 +370,7 @@ func _on_save_file_selected(p_dst_path) -> void: save_file_dialog.title = "Save Packed Normal/Roughness Texture" save_file_dialog.call_deferred("popup_centered_ratio") - save_file_dialog.call_deferred("move_to_foreground") + save_file_dialog.call_deferred("grab_focus") func _alignment_basis(normal: Vector3) -> Basis: