From da9b6703c91c9fd5d1c0c60363f74de75e885ba0 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 26 Jan 2022 22:12:41 +0100 Subject: [PATCH] Fix the resource pane. now it will properly show the folder entries. --- game/addons/data_manager/panels/ResourcePanel.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/game/addons/data_manager/panels/ResourcePanel.gd b/game/addons/data_manager/panels/ResourcePanel.gd index 66b0ba50..707e14a7 100644 --- a/game/addons/data_manager/panels/ResourcePanel.gd +++ b/game/addons/data_manager/panels/ResourcePanel.gd @@ -42,6 +42,9 @@ func _ready(): _delete_popup = get_node(delete_popup_path) func set_resource_type(folder : String, resource_type : String) -> void: + if !folder.ends_with("/"): + folder += "/" + if folder == _folder and _resource_type == resource_type: return