[Bf-extensions-cvs] [1fe81249] master: glTF importer: Fix bad initialisation of node data
Julien Duroure
noreply at git.blender.org
Wed Mar 13 06:22:24 CET 2019
Commit: 1fe812499d5c8e2962d8d5a90b2b5837097e334e
Author: Julien Duroure
Date: Wed Mar 13 06:21:51 2019 +0100
Branches: master
https://developer.blender.org/rBA1fe812499d5c8e2962d8d5a90b2b5837097e334e
glTF importer: Fix bad initialisation of node data
===================================================================
M io_scene_gltf2/blender/imp/gltf2_blender_gltf.py
===================================================================
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):
More information about the Bf-extensions-cvs
mailing list