Code cleanup.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user