Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import crash: transform_container['scale'] ZeroDivisionError #8

Open
alinsavix opened this issue Aug 8, 2021 · 0 comments
Open

import crash: transform_container['scale'] ZeroDivisionError #8

alinsavix opened this issue Aug 8, 2021 · 0 comments

Comments

@alinsavix
Copy link
Collaborator

Example file: spells\8fx_nightelf_moonwell_lunar_dark.obj

Python: Traceback (most recent call last):
  File "C:\Users\alinsa\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\alinsa\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\WoWbjectImporter\utilties.py", line 661, in do_import
    reports = import_obj.do_setup(
  File "C:\Users\alinsa\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\WoWbjectImporter\utilties.py", line 141, in do_setup
    load_step = self.unpack_m2()
  File "C:\Users\alinsa\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\WoWbjectImporter\utilties.py", line 164, in unpack_m2
    self.use_m2, self.m2_dict, self.anim_combos, self.anim_transforms, self.bones = read_m2(
  File "C:\Users\alinsa\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\WoWbjectImporter\kaitai\m2_handler.py", line 203, in read_m2
    transform_container['scale'] = (scale_vectors.x / rate, scale_vectors.y / rate, scale_vectors.z / rate)
ZeroDivisionError: float division by zero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant