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>2020-02-23 13:55:32 +0300
committerJulien Duroure <julien.duroure@gmail.com>2020-02-23 13:55:32 +0300
commitee61a3a692d30bcb844901c87c9408db332f4265 (patch)
tree61e58774a4ce0285a5103ca5f32e5ff1e2c272ec /io_scene_gltf2/blender/imp/gltf2_blender_gltf.py
parentb4fc9fbcf4e2d766143d6e88b57e892a12b6fe88 (diff)
glTF importer: manage morph weights at node level
Diffstat (limited to 'io_scene_gltf2/blender/imp/gltf2_blender_gltf.py')
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_gltf.py16
1 files changed, 2 insertions, 14 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py b/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py
index 33f3ff57..8e6c1950 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py
@@ -96,21 +96,10 @@ class BlenderGlTF():
# Something is wrong in file, there is no nodes
return
- for node_idx, node in enumerate(gltf.data.nodes):
-
+ for node in 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"):
- gltf.data.skins[node.skin].node_ids = []
-
- gltf.data.skins[node.skin].node_ids.append(node_idx)
-
- # Lights management
- node.correction_needed = False
-
# Dispatch animation
if gltf.data.animations:
for node_idx, node in enumerate(gltf.data.nodes):
@@ -138,8 +127,7 @@ class BlenderGlTF():
# Meshes
if gltf.data.meshes:
for mesh in gltf.data.meshes:
- mesh.blender_name = {} # cache Blender mesh (keyed by skin_idx)
- mesh.is_weight_animated = False
+ mesh.blender_name = {} # caches Blender mesh name
# Calculate names for each mesh's shapekeys
for mesh in gltf.data.meshes or []: