Code cleanup.

This commit is contained in:
2023-01-27 17:30:10 +08:00
parent 130896df1f
commit c4b139c7a4
4 changed files with 6 additions and 6 deletions

View File

@@ -104,6 +104,8 @@ namespace Cryville.Crtr.Event {
CachedValues = new Dictionary<Identifier, MotionCache>(ChartPlayer.motionRegistry.Count);
foreach (var m in ChartPlayer.motionRegistry)
Values.Add(m.Key, new RealtimeMotionValue().Init(Parent == null ? m.Value.GlobalInitValue : m.Value.InitValue));
rootPrototype = this;
}
static void AddChild(EventContainer c, ContainerState s, ContainerState target) {
@@ -148,8 +150,6 @@ namespace Cryville.Crtr.Event {
else if (ct >= 16) Handler.ps = r;
else throw new InvalidOperationException("Invalid clone type");
r.prototype = this;
if (prototype == null) r.rootPrototype = this;
else r.rootPrototype = rootPrototype;
r.CloneType = ct;
return r;
}