Skip to content

Commit 36dc4a7

Browse files
authored
Merge pull request #13743 from nick-nikoliuk/fix-fbx-clip-parse
FBXLoader: Fix clip offset time.
2 parents 953f648 + 90f69ec commit 36dc4a7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

examples/js/loaders/FBXLoader.js

+8
Original file line numberDiff line numberDiff line change
@@ -2177,6 +2177,14 @@
21772177

21782178
};
21792179

2180+
var offset = animationCurve.times[ 0 ];
2181+
2182+
for ( var i = 0; i < animationCurve.times.length; i++ ) {
2183+
2184+
animationCurve.times[ i ] -= offset;
2185+
2186+
}
2187+
21802188
var relationships = connections.get( animationCurve.id );
21812189

21822190
if ( relationships !== undefined ) {

0 commit comments

Comments
 (0)