This commit is contained in:
Perfare
2018-11-14 16:01:52 +08:00
parent a89fd049f1
commit 6d68f2bde5
3 changed files with 10 additions and 7 deletions

View File

@ -200,7 +200,7 @@ namespace AssetStudio
return null;
}
public static ImportedFrame FindChild(string name, ImportedFrame root)
public static ImportedFrame FindChildOrRoot(string name, ImportedFrame root)
{
foreach (var child in root)
{
@ -210,7 +210,10 @@ namespace AssetStudio
return frame;
}
}
if (root.Name == name)
{
return root;
}
return null;
}