Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Duroure <julien.duroure@gmail.com>2019-01-24 22:50:16 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-01-24 22:50:16 +0300
commitcf3ec0d146658aec41f08f002ca4b80f8d4f576b (patch)
tree3ae08ec964e458a70276fd5e42b24974411fa972
parent2eace4e4b1f171a9da5fc0be2ab7efba6396d9fe (diff)
glTF importer: default animation interpolation is LINEAR
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_animation_bone.py2
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_animation_node.py2
2 files changed, 2 insertions, 2 deletions
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):