Fix the resource pane. now it will properly show the folder entries.

This commit is contained in:
Relintai 2022-01-26 22:12:41 +01:00
parent 9f1d06c7f8
commit da9b6703c9

View File

@ -42,6 +42,9 @@ func _ready():
_delete_popup = get_node(delete_popup_path) _delete_popup = get_node(delete_popup_path)
func set_resource_type(folder : String, resource_type : String) -> void: func set_resource_type(folder : String, resource_type : String) -> void:
if !folder.ends_with("/"):
folder += "/"
if folder == _folder and _resource_type == resource_type: if folder == _folder and _resource_type == resource_type:
return return