[Bf-extensions-cvs] [cf3ec0d1] master: glTF importer: default animation interpolation is LINEAR
Julien Duroure
noreply at git.blender.org
Thu Jan 24 20:50:47 CET 2019
Commit: cf3ec0d146658aec41f08f002ca4b80f8d4f576b
Author: Julien Duroure
Date: Thu Jan 24 20:50:16 2019 +0100
Branches: master
https://developer.blender.org/rBAcf3ec0d146658aec41f08f002ca4b80f8d4f576b
glTF importer: default animation interpolation is LINEAR
===================================================================
M io_scene_gltf2/blender/imp/gltf2_blender_animation_bone.py
M io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py
===================================================================
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_animation_bone.py b/io_scene_gltf2/blender/imp/gltf2_blender_animation_bone.py
index c0884966..095d2a1d 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_animation_bone.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_animation_bone.py
@@ -34,7 +34,7 @@ class BlenderBoneAnim():
elif interpolation == "CUBICSPLINE":
kf.interpolation = 'BEZIER'
else:
- kf.interpolation = 'BEZIER'
+ kf.interpolation = 'LINEAR'
@staticmethod
def parse_translation_channel(gltf, node, obj, bone, channel, animation):
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py b/io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py
index 60947c1f..e496add8 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py
@@ -35,7 +35,7 @@ class BlenderNodeAnim():
elif interpolation == "CUBICSPLINE":
kf.interpolation = 'BEZIER'
else:
- kf.interpolation = 'BEZIER'
+ kf.interpolation = 'LINEAR'
@staticmethod
def anim(gltf, anim_idx, node_idx):
More information about the Bf-extensions-cvs
mailing list