[Bf-extensions-cvs] [9666bfc8] master: glTF importer: fix previous commit

Julien Duroure noreply at git.blender.org
Sun Jun 2 04:20:07 CEST 2019


Commit: 9666bfc81d7889f86b2d789b22f8d8e879523670
Author: Julien Duroure
Date:   Sun Jun 2 04:02:00 2019 +0200
Branches: master
https://developer.blender.org/rBA9666bfc81d7889f86b2d789b22f8d8e879523670

glTF importer: fix previous commit

===================================================================

M	io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py

===================================================================

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 5cdfe6c2..87e07246 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_animation_node.py
@@ -174,7 +174,7 @@ class BlenderNodeAnim():
 
                 if animation.samplers[channel.sampler].interpolation == "CUBICSPLINE":
                     factor = 3
-                    delta = len(keys)
+                    delta = nb_targets
                 else:
                     factor = 1
                     delta = 0



More information about the Bf-extensions-cvs mailing list