We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d02933d commit d6adc29Copy full SHA for d6adc29
examples/jsm/loaders/GLTFLoader.js
@@ -1245,7 +1245,14 @@ class GLTFAnimationPointerExtension {
1245
1246
const interpolation = sampler.interpolation !== undefined ? INTERPOLATION[ sampler.interpolation ] : InterpolateLinear;
1247
1248
- const outputArray = getArrayFromAccessor( outputAccessor );
+ let outputArray = getArrayFromAccessor( outputAccessor );
1249
+
1250
+ // convert fov values from radians to degrees
1251
+ if ( animationPointerPropertyPath.endsWith( '.fov' ) ) {
1252
1253
+ outputArray = outputArray.map( value => value / Math.PI * 180 );
1254
1255
+ }
1256
1257
const track = new TypedKeyframeTrack(
1258
animationPointerPropertyPath,
0 commit comments