REDxEYE / SourceIO

SourceIO is an Blender(3.4+) addon for importing source engine textures/models/maps
https://discord.gg/XJvhzaXZf3
MIT License
644 stars 59 forks source link

Python error while importing mdl file #317

Closed dpetukhov closed 2 months ago

dpetukhov commented 3 months ago

Hi.

I can not import mdl file. It gives me an error:

Python: Traceback (most recent call last):
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\SourceIO\blender_bindings\operators\source1_operators.py", line 58, in execute
    put_into_collections(model_container, mdl_path.stem, bodygroup_grouping=self.bodygroup_grouping)
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\SourceIO\blender_bindings\models\common.py", line 50, in put_into_collections
    if model_container.bodygroups:
AttributeError: 'NoneType' object has no attribute 'bodygroups'

See mdl file attached. It's from doom3 weapon pack for garrys mod.

v_chainsaw.zip

REDxEYE commented 2 months ago

Your file is malformed, dont use gmad to unpack gma files, use crowbar