Skip to content

UnboundLocalError when trying to load PLA model #6

@Fa6ex

Description

@Fa6ex

After downloading the models from the model dump linked on this repo, I tried loading a few of them, but only managed to load the armature before I got the following error:

Python: Traceback (most recent call last):
File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\PokemonSwitch.py", line 93, in execute
from_trmdl(directory, f, self.rare, self.loadlods)
File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\PokemonSwitch.py", line 1623, in from_trmdl
if poly_group_struct_ptr_unk_vis_group_name != 0:
UnboundLocalError: local variable 'poly_group_struct_ptr_unk_vis_group_name' referenced before assignment

I also tried doing the same with the options Load Shiny, Load All Folder, Load LODS ticked on/off, with the same result.

This error only occurs when loading PLA models - everything runs just fine when loading SV models

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions