Skip to content

Commit

Permalink
fix bones export
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonnji committed Sep 12, 2021
1 parent ed6da51 commit 7c82a80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kitsunetsuki/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
bl_info = {
'name': 'KITSUNETSUKI Asset Tools',
'author': 'kitsune.ONE team',
'version': (0, 6, 3),
'version': (0, 6, 4),
'blender': (2, 92, 0),
'location': 'File > Import-Export',
'description': 'Exports: glTF, VRM',
Expand Down
4 changes: 3 additions & 1 deletion kitsunetsuki/exporter/gltf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ def make_armature(self, parent_node, armature):
}
self._root['skins'].append(gltf_skin)

set_active_object(armature)

bone_tails_local = {}
for bone_name, bone in armature.data.bones.items():
bone_tails_local[bone_name] = bone.tail
Expand All @@ -273,7 +275,7 @@ def make_armature(self, parent_node, armature):
bone_tails_off[bone_name] = bone.tail - bone.head

if self._pose_freeze:
set_active_object(armature)
# set_active_object(armature)

# disconnect all bones
with Mode('EDIT'):
Expand Down

0 comments on commit 7c82a80

Please sign in to comment.