Added this[] overloads to Instance & RobloxFile.

This commit is contained in:
CloneTrooper1019
2019-02-03 07:28:54 -06:00
parent f7184eb8f8
commit 23c222338a
4 changed files with 40 additions and 3 deletions

View File

@ -25,6 +25,8 @@ namespace RobloxFiles.XmlFormat.PropertyTokens
try
{
bool custom = readBool("CustomPhysics");
prop.Type = PropertyType.PhysicalProperties;
if (custom)
{
prop.Value = new PhysicalProperties
@ -35,8 +37,6 @@ namespace RobloxFiles.XmlFormat.PropertyTokens
readFloat("FrictionWeight"),
readFloat("ElasticityWeight")
);
prop.Type = PropertyType.PhysicalProperties;
}
return true;