diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-03-13 08:21:51 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-03-13 08:21:51 +0300 |
commit | 1fe812499d5c8e2962d8d5a90b2b5837097e334e (patch) | |
tree | 7f66e32e4a77c7cd96f3850e0cbcd4f4c4eb7d57 | |
parent | 59ddca922cceb493f4f776267f3c67346a04124a (diff) |
glTF importer: Fix bad initialisation of node data
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_gltf.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py b/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py index 0df29b94..fac02fb3 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py @@ -174,6 +174,9 @@ class BlenderGlTF(): for node_idx, node in enumerate(gltf.data.nodes): + # Weight animation management + node.weight_animation = False + # skin management if node.skin is not None and node.mesh is not None: if not hasattr(gltf.data.skins[node.skin], "node_ids"): @@ -205,9 +208,6 @@ class BlenderGlTF(): node.transform = mat - # Weight animation management - node.weight_animation = False - # joint management for node_idx, node in enumerate(gltf.data.nodes): |