Skip to content

Commit

Permalink
Don't throw for custom ParticleForceField curves
Browse files Browse the repository at this point in the history
Resolves #1239
  • Loading branch information
ds5678 committed Mar 23, 2024
1 parent db2bd9d commit 4f2554c
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,17 @@ public string ToAttributeName(BindingCustomType type, uint attribute, string pat
{
return foundPath;
}
else
{
//This has at least one ordinal property name,
//So the precalculated hashes are insufficient for recovery.
//Binary analysis may be required.
//Example failed attributes:
//0x8D909E70 (2375065200)
//https://github.com/AssetRipper/AssetRipper/issues/1239
}
}
return ThrowUnknownAttributeException(type, attribute);
return Crc32Algorithm.ReverseAscii(attribute, $"ParticleForceField_0x{attribute:X}_");

case BindingCustomType.UserDefined:
return Crc32Algorithm.ReverseAscii(attribute, $"UserDefined_0x{attribute:X}_");
Expand Down

0 comments on commit 4f2554c

Please sign in to comment.