glTF importer: fix issue involving flipped bone Z dir
This is a candidate for 2.93.x LTS
This commit is contained in:
parent
eedbe30379
commit
b986a52051
|
@ -15,7 +15,7 @@
|
|||
bl_info = {
|
||||
'name': 'glTF 2.0 format',
|
||||
'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
|
||||
"version": (1, 7, 10),
|
||||
"version": (1, 7, 11),
|
||||
'blender': (2, 91, 0),
|
||||
'location': 'File > Import-Export',
|
||||
'description': 'Import-Export as glTF 2.0',
|
||||
|
|
|
@ -145,8 +145,8 @@ class BlenderNode():
|
|||
arma_mat = vnode.editbone_arma_mat
|
||||
editbone.head = arma_mat @ Vector((0, 0, 0))
|
||||
editbone.tail = arma_mat @ Vector((0, 1, 0))
|
||||
editbone.align_roll(arma_mat @ Vector((0, 0, 1)) - editbone.head)
|
||||
editbone.length = vnode.bone_length
|
||||
editbone.align_roll(arma_mat @ Vector((0, 0, 1)) - editbone.head)
|
||||
|
||||
if isinstance(id, int):
|
||||
pynode = gltf.data.nodes[id]
|
||||
|
|
Loading…
Reference in New Issue