From b32c1a696c98b9c795a9f22e07041c97360376c7 Mon Sep 17 00:00:00 2001 From: Rodz Labs Date: Wed, 1 Nov 2023 10:07:51 +0100 Subject: [PATCH] Switch to Godot 4.2b4 and updated panel container --- .github/workflows/dev-desktop-builds.yml | 4 ++-- material_maker/panel_container.gd | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dev-desktop-builds.yml b/.github/workflows/dev-desktop-builds.yml index deb920996..d80ee315f 100644 --- a/.github/workflows/dev-desktop-builds.yml +++ b/.github/workflows/dev-desktop-builds.yml @@ -13,8 +13,8 @@ on: env: GODOT_VERSION: 4.2 - GODOT_SUB: beta3 - GODOT_DOWNLOAD_DIR: https://github.com/godotengine/godot-builds/releases/download/4.2-beta3 + GODOT_SUB: beta4 + GODOT_DOWNLOAD_DIR: https://github.com/godotengine/godot-builds/releases/download/4.2-beta4 EXPORT_NAME: material_maker MM_RELEASE: 1_4a1 diff --git a/material_maker/panel_container.gd b/material_maker/panel_container.gd index 669d37a07..7373f8788 100644 --- a/material_maker/panel_container.gd +++ b/material_maker/panel_container.gd @@ -1,13 +1,15 @@ extends TabContainer +func _ready(): + pass func _drop_data(_at_position, data): - var source : TabContainer = get_node(data.from_path) - var panel = source.get_tab_control(data.tabc_element) + var source : TabContainer = get_node(data.from_path).get_parent() + var panel = source.get_tab_control(data.tab_index) source.remove_child(panel) add_child(panel) func _can_drop_data(_at_position, data): - if data is Dictionary and data.has("type") and data.type == "tabc_element": + if data is Dictionary and data.has("type") and data.type == "tab_container_tab": return true return false