From f5666e47dc1c594eeebdab77d6385725a098276d Mon Sep 17 00:00:00 2001 From: opparco Date: Wed, 30 Aug 2017 02:59:52 +0900 Subject: [PATCH] fix about accumulated error --- Addins/ExportKF.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Addins/ExportKF.cpp b/Addins/ExportKF.cpp index 2070a08..74e54ac 100644 --- a/Addins/ExportKF.cpp +++ b/Addins/ExportKF.cpp @@ -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 @@ -349,7 +347,7 @@ bool AnimationExport::exportController() } hkReal time = startTime; - for (int iFrame=0; iFramem_duration / (hkReal)(nframes-1)) { //hkUint32 uiAnnotations = anim->getNumAnnotations(time, incrFrame);