diff --git a/Switch_Toolbox_Library/Forms/Editors/Object Editor/ObjectEditorList.cs b/Switch_Toolbox_Library/Forms/Editors/Object Editor/ObjectEditorList.cs index eac6dd63..2edafa59 100644 --- a/Switch_Toolbox_Library/Forms/Editors/Object Editor/ObjectEditorList.cs +++ b/Switch_Toolbox_Library/Forms/Editors/Object Editor/ObjectEditorList.cs @@ -182,9 +182,9 @@ namespace Switch_Toolbox.Library.Forms listViewCustom1.BeginUpdate(); listViewCustom1.Items.Clear(); - if (treeViewCustom1.SelectedNode.Tag is IEnumerable files) + if (treeViewCustom1.SelectedNode.Tag is IEnumerable) { - foreach (var file in files) + foreach (var file in (IEnumerable)treeViewCustom1.SelectedNode.Tag) { ListViewItem item = new ListViewItem(System.IO.Path.GetFileName(file.FileName)); item.ImageKey = "texture";