Skip to content

Commit

Permalink
manis - warn about extraneous bones and ignore them
Browse files Browse the repository at this point in the history
  • Loading branch information
HENDRIX-ZT2 committed Sep 22, 2023
1 parent c52c520 commit f37f4a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions plugin/import_manis.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,14 @@ def iter_keys(m_bone_names, m_keys, bones_data, b_action, b_dtype, m_extra_bone_
bonerestmat_inv = bones_data[b_name]
b_channel = b_name
else:
bonerestmat_inv = mathutils.Matrix().to_4x4()
b_channel = None
# not sure this is desired like that
if bones_data:
logging.warning(f"Ignoring extraneous bone '{b_name}'")
continue
else:
logging.debug(f"Object transform '{b_name}' as LocRotScale")
bonerestmat_inv = mathutils.Matrix().to_4x4()
b_channel = None

scale_i = scale_lut.get(m_name, None)
fcurves = anim_sys.create_fcurves(b_action, b_dtype, dt_size[b_dtype], None, b_channel)
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7e3eae11a - Fri Sep 22 16:12:04 2023 +0200
c52c5208c - Fri Sep 22 17:53:06 2023 +0200

0 comments on commit f37f4a2

Please sign in to comment.