diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-12-14 10:44:53 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-12-14 10:44:53 +0300 |
commit | 76fc4142b518189b602ff69b4c43ebbfb1b23441 (patch) | |
tree | 4cd85bd4b9fa364d2a0b3ffd76e7981a1b3bcce6 | |
parent | 18246268e802958bf02ffa14c764d2cc32ddb4d4 (diff) |
glTF importer: size of bone at creation are now based on armature scale
-rwxr-xr-x | io_scene_gltf2/__init__.py | 2 | ||||
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_skin.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py index 7a3cd13a..7b080697 100755 --- a/io_scene_gltf2/__init__.py +++ b/io_scene_gltf2/__init__.py @@ -15,7 +15,7 @@ bl_info = { 'name': 'glTF 2.0 format', 'author': 'Julien Duroure, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors', - "version": (1, 1, 24), + "version": (1, 1, 25), 'blender': (2, 81, 6), 'location': 'File > Import-Export', 'description': 'Import-Export as glTF 2.0', diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_skin.py b/io_scene_gltf2/blender/imp/gltf2_blender_skin.py index 0f512188..1d88e0e7 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_skin.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_skin.py @@ -129,7 +129,7 @@ class BlenderSkin(): bone = obj.data.edit_bones.new(name) pynode.blender_bone_name = bone.name pynode.blender_armature_name = pyskin.blender_armature_name - bone.tail = Vector((0.0, 1.0, 0.0)) # Needed to keep bone alive + bone.tail = Vector((0.0, 1.0 / obj.matrix_world.to_scale()[1], 0.0)) # Needed to keep bone alive # Custom prop on edit bone set_extras(bone, pynode.extras) |