Closed svip closed 12 months ago
Which branch of the xml were you using?
I'm using develop
on nifxml.
Hm, odd. You're right that name_type_map
should already be filled in by the time init_attributes
is called. You could try manually adding a try: except case around the failing piece of code and then see what's in the name_type_map at the time of the exception.
Oh dear. I feel kind of guilty for bringing this up, but clearly it was some internal cache in Blender. I cannot believe I did not at least attempt restarting Blender. I will just close this issue. It's just that Blender gives a clear implication that it can unload and reload addons at any time.
It's just that Blender gives a clear implication that it can unload and reload addons at any time.
That's very risky. I always restart hehe
Describe the bug Using https://github.com/Candoran2/nifxml for
formats/nif
, using this guide, I end up with an addon Blender cannot load:To Reproduce Steps to reproduce the behavior:
Expected behavior That it would install without problem.
Version Info:
This bug honestly baffles me, because looking at the Python code, it should be correct:
My
formats/nif/imports.py
contain this as the bottom (like all otherimports.py
).name_type_map
should already be filled in by the timeinit_attributes()
is called, and yet somehow it appears that it isn't?I was thinking of posting this issue at https://github.com/Candoran2/nifxml, but that project does not appear to allow issues. But I can see @Candoran2 is involved both places.