Skip to content

Commit

Permalink
fix a bug where 'recordLimitedFrames' function still works while not …
Browse files Browse the repository at this point in the history
…checked
  • Loading branch information
newyellow committed Feb 12, 2018
1 parent c68b8cf commit d422993
Showing 1 changed file with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,21 @@ void FixedUpdate () {

if (isStart) {

if (frameIndex < recordFrames) {
for (int i = 0; i < objRecorders.Length; i++) {
objRecorders [i].AddFrame (nowTime);
}
if (recordLimitedFrames) {
if (frameIndex < recordFrames) {
for (int i = 0; i < objRecorders.Length; i++) {
objRecorders [i].AddFrame (nowTime);
}

++frameIndex;
} else {
isStart = false;
ExportAnimationClip ();
CustomDebug ("Recording Finish, generating .anim file");
++frameIndex;
}
else {
isStart = false;
ExportAnimationClip ();
CustomDebug ("Recording Finish, generating .anim file");
}
}

}
}

Expand Down

0 comments on commit d422993

Please sign in to comment.