Code cleanup.
This commit is contained in:
@@ -443,7 +443,7 @@ namespace Cryville.Crtr.Event {
|
|||||||
else {
|
else {
|
||||||
var target = value.GetRelativeNode(tev.Node.Id);
|
var target = value.GetRelativeNode(tev.Node.Id);
|
||||||
if (target == null) value.SetRelativeNode(tev.Node);
|
if (target == null) value.SetRelativeNode(tev.Node);
|
||||||
else tev.Node.LerpWith(m.Value.GetRelativeNode(tev.Node.Id), transition, ref target);
|
else tev.Node.LerpWith(start, transition, ref target);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -28,10 +28,10 @@ namespace Cryville.Crtr {
|
|||||||
public MotionRegistry(Vector init) : this(init, init) { }
|
public MotionRegistry(Vector init) : this(init, init) { }
|
||||||
|
|
||||||
public MotionRegistry(Vector init, Vector globalInit) {
|
public MotionRegistry(Vector init, Vector globalInit) {
|
||||||
m_InitValue = init;
|
|
||||||
m_GlobalInitValue = globalInit;
|
|
||||||
if (!init.GetType().Equals(globalInit.GetType())) throw new ArgumentException();
|
if (!init.GetType().Equals(globalInit.GetType())) throw new ArgumentException();
|
||||||
m_Type = init.GetType();
|
m_Type = init.GetType();
|
||||||
|
m_InitValue = init;
|
||||||
|
m_GlobalInitValue = globalInit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -127,6 +127,7 @@ namespace Cryville.Crtr {
|
|||||||
dest.Id = Id;
|
dest.Id = Id;
|
||||||
Time.CopyTo(dest.Time);
|
Time.CopyTo(dest.Time);
|
||||||
EndTime.CopyTo(dest.EndTime);
|
EndTime.CopyTo(dest.EndTime);
|
||||||
|
dest.Transition = Transition;
|
||||||
Value.CopyTo(dest.Value);
|
Value.CopyTo(dest.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user