Some improvements

This commit is contained in:
Perfare
2018-04-21 09:36:10 +08:00
parent a3c92ddb8f
commit 674c634c2c
17 changed files with 53 additions and 156 deletions

View File

@@ -621,9 +621,8 @@ namespace AssetStudio
public GenericBinding FindBinding(int index)
{
int curves = 0;
for (int i = 0; i < genericBindings.Count; i++)
foreach (var b in genericBindings)
{
GenericBinding b = genericBindings[i];
curves += b.attribute == 2 ? 4 : b.attribute <= 4 ? 3 : 1;
if (curves > index)
{
@@ -633,17 +632,6 @@ namespace AssetStudio
return null;
}
public GenericBinding FindBinding(uint path, uint attribute)
{
return genericBindings.Find
(
delegate (GenericBinding b)
{
return b.path == path && b.attribute == attribute;
}
);
}
}
public class AnimationClip