Updated so all times now are in MS instead of seconds. Note that all animations need to be re-exported with an exporter that supports this.

This commit is contained in:
Mikael Emtinger
2011-03-08 10:26:33 +01:00
parent 117672c94c
commit 4ecbd08581
+4 -4
View File
@@ -118,8 +118,8 @@ THREE.AnimationHandler = (function() {
return;
// THIS SHOULD BE REMOVED WHEN LENGTH IS UPDATED TO MS IN EXPORT FORMAT!
data.length = parseInt( data.length * 1000, 10 );
data.fps *= 0.001;
//data.length = parseInt( data.length * 1000, 10 );
//data.fps *= 0.001;
// loop through all keys
@@ -135,7 +135,7 @@ THREE.AnimationHandler = (function() {
// THIS SHOULD BE REMOVED WHEN LENGTH IS UPDATED TO MS IN EXPORT FORMAT!
data.hierarchy[ h ].keys[ k ].time = parseInt( data.hierarchy[ h ].keys[ k ].time * 1000, 10 );
//data.hierarchy[ h ].keys[ k ].time = parseInt( data.hierarchy[ h ].keys[ k ].time * 1000, 10 );
// create quaternions
@@ -177,7 +177,7 @@ THREE.AnimationHandler = (function() {
// JIT
var lengthInFrames = parseInt( data.length * data.fps * 0.001, 10 );
var lengthInFrames = parseInt( data.length * data.fps, 10 );
data.JIT = {};
data.JIT.hierarchy = [];