Cleanup 3
This commit is contained in:
@@ -313,7 +313,7 @@ namespace FlaxEngine
|
||||
if (time < start)
|
||||
{
|
||||
if (loop)
|
||||
time = time + (Mathf.Floor(end - time) / length) * length;
|
||||
time += (Mathf.Floor(end - time) / length) * length;
|
||||
else
|
||||
time = start;
|
||||
}
|
||||
@@ -322,7 +322,7 @@ namespace FlaxEngine
|
||||
if (time > end)
|
||||
{
|
||||
if (loop)
|
||||
time = time - Mathf.Floor((time - start) / length) * length;
|
||||
time -= Mathf.Floor((time - start) / length) * length;
|
||||
else
|
||||
time = end;
|
||||
}
|
||||
@@ -420,7 +420,7 @@ namespace FlaxEngine
|
||||
{
|
||||
if (Keyframes.Length == 0)
|
||||
{
|
||||
result = new Keyframe(time, default(T));
|
||||
result = new Keyframe(time, default);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -621,7 +621,7 @@ namespace FlaxEngine
|
||||
{
|
||||
Time = time;
|
||||
Value = value;
|
||||
TangentIn = TangentOut = default(T);
|
||||
TangentIn = TangentOut = default;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -696,7 +696,7 @@ namespace FlaxEngine
|
||||
{
|
||||
if (Keyframes.Length == 0)
|
||||
{
|
||||
result = new Keyframe(time, default(T));
|
||||
result = new Keyframe(time, default);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user