Patched fatal flaw with property setter.
Turns out the property setter was failing to cover inheritance, so referent properties were being corrupted in the process. This should now be fixed. I've also deprecated IsA<T>() in favor of using C#'s own `is` operator and stopped locking the parent of service classes to avoid saving issues.
This commit is contained in:
@ -27,7 +27,6 @@ namespace RobloxFiles.BinaryFormat.Chunks
|
||||
|
||||
Instance child = file.Instances[childId];
|
||||
child.Parent = (parentId >= 0 ? file.Instances[parentId] : file);
|
||||
child.ParentLocked = child.IsService;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -362,7 +362,12 @@ namespace RobloxFiles.BinaryFormat.Chunks
|
||||
readProperties(i =>
|
||||
{
|
||||
int instId = instIds[i];
|
||||
return instId >= 0 ? file.Instances[instId] : null;
|
||||
Instance result = null;
|
||||
|
||||
if (instId >= 0)
|
||||
result = file.Instances[instId];
|
||||
|
||||
return result;
|
||||
});
|
||||
|
||||
break;
|
||||
|
Reference in New Issue
Block a user