nashmuhandes / io_export_gzdoom_md3

GZDoom MD3 exporter for Blender 3.2.0 and 2.79b
23 stars 6 forks source link

Errors on export #8

Closed CoffeePowerUp closed 2 years ago

CoffeePowerUp commented 2 years ago

Trying to use the addon with Blender 3.2.2 but no success... I get these errors. Not sure if it's Python version related or Blender related.

###################### BEGIN ######################
Traceback (most recent call last):
  File "D:\Games\Steam\steamapps\common\Blender\3.2\scripts\addons\io_export_gzdoom_md3.py", line 1081, in execute
    save_md3(**settings)
  File "D:\Games\Steam\steamapps\common\Blender\3.2\scripts\addons\io_export_gzdoom_md3.py", line 936, in save_md3
    model.add_tag(bobject)
  File "D:\Games\Steam\steamapps\common\Blender\3.2\scripts\addons\io_export_gzdoom_md3.py", line 692, in add_tag
    orientation = self.fix_transform.to_3x3() @ orientation
TypeError: Matrix multiplication: not supported between 'Matrix' and 'NoneType' types

I tried a few things. If I don't export tag, then it's fine. If I try to export tag, these issues come up. Since I'm not familiar with Blender API much and Python, I couldn't fix it.

I have another issue but that's related to the selected active object, at least I know what's the culprit and I know I need to select a mesh first an then tags. That active object part doesn't check if it's a mesh or empty in the script.

I hope the issue can be fixed, looking for a proper md3 exporter that supports tags. To be fair, I would use it for something else than GZDoom, but I think the md3 specification of this exporter is 100% based on id's original md3 format for Quake3.