Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Addins/ExportKF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,6 @@ bool AnimationExport::exportController()
float duration = anim->m_duration;
seq->SetStopTime(duration);

hkReal incrFrame = anim->m_duration / (hkReal)(nframes-1);

int nbones = skeleton->m_bones.getSize();

// dont know how to deal with this
Expand Down Expand Up @@ -349,7 +347,7 @@ bool AnimationExport::exportController()
}

hkReal time = startTime;
for (int iFrame=0; iFrame<nframes; ++iFrame, time += incrFrame)
for (int iFrame=0; iFrame<nframes; ++iFrame, time = startTime + (hkReal)iFrame * anim->m_duration / (hkReal)(nframes-1))
{

//hkUint32 uiAnnotations = anim->getNumAnnotations(time, incrFrame);
Expand Down