Compare commits
No commits in common. "489c23d9fbafcd8e71de5ef2d379b7f2e378042b" and "8fbecb31bce56f3fefbef38fe1356e40996c577b" have entirely different histories.
489c23d9fb
...
8fbecb31bc
@ -64,7 +64,6 @@ public class TimeLineAction : IAction
|
|||||||
{
|
{
|
||||||
play.Stop();
|
play.Stop();
|
||||||
play.time = curEndFrame / 24;
|
play.time = curEndFrame / 24;
|
||||||
play.Evaluate();
|
|
||||||
}
|
}
|
||||||
if (play.state != PlayState.Playing)
|
if (play.state != PlayState.Playing)
|
||||||
{
|
{
|
||||||
@ -110,31 +109,17 @@ public class TimeLineAction : IAction
|
|||||||
{
|
{
|
||||||
curSpeed = 1;
|
curSpeed = 1;
|
||||||
}
|
}
|
||||||
|
if (!play.playableGraph.IsValid())
|
||||||
|
{
|
||||||
|
play.RebuildGraph();
|
||||||
|
}
|
||||||
|
play.playableGraph.GetRootPlayable(0).SetSpeed(curSpeed);
|
||||||
|
play.Play();
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(endFrame) == false)
|
if (string.IsNullOrEmpty(endFrame) == false)
|
||||||
{
|
{
|
||||||
float.TryParse(endFrame, out curEndFrame);
|
float.TryParse(endFrame, out curEndFrame);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!play.playableGraph.IsValid())
|
|
||||||
{
|
|
||||||
play.RebuildGraph();
|
|
||||||
}
|
|
||||||
if (curFrame == curEndFrame)
|
|
||||||
{
|
|
||||||
play.time = curEndFrame / 24;
|
|
||||||
play.Evaluate();
|
|
||||||
Finished();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
|
|
||||||
play.playableGraph.GetRootPlayable(0).SetSpeed(curSpeed);
|
|
||||||
play.Play();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool iswait = true;
|
bool iswait = true;
|
||||||
bool.TryParse(isWait, out iswait);
|
bool.TryParse(isWait, out iswait);
|
||||||
if (iswait == false)
|
if (iswait == false)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user