ThatAsherGuy / WoWbjectImporter

A World of Warcraft Model Importer for Blender
GNU General Public License v3.0
26 stars 8 forks source link

creature/encrypted16/encrypted16.m2 (fid 2843110) crashes on import #7

Open alinsavix opened 3 years ago

alinsavix commented 3 years ago

Gives an untextured model when imported, possibly has something up with UV animations (which I think aren't animated until specific animations are played back).

Stack (line numbers may be off due to local copy changes):

Python: Traceback (most recent call last):
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\WoWbjectImporter\operators.py", line 172, in execute
    reports = do_import(self, context, self.filepath, self.reuse_materials, self.base_shader, args)
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\WoWbjectImporter\utilties.py", line 633, in do_import
    reports = import_obj.do_setup(
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\WoWbjectImporter\utilties.py", line 138, in do_setup
    load_step = self.unpack_m2()
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\WoWbjectImporter\utilties.py", line 161, in unpack_m2
    self.use_m2, self.m2_dict, self.anim_combos, self.anim_transforms, self.bones = read_m2(self.source_directory, self.m2)
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\WoWbjectImporter\kaitai\m2_handler.py", line 185, in read_m2
    translate_vectors = mathutils.Vector((translate_rate.x, translate_rate.y, translate_rate.z))
AttributeError: 'int' object has no attribute 'x'