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

Error re-registering add-on (with fix) #77

Closed
ideasman42 opened this issue Oct 24, 2024 · 1 comment
Closed

Error re-registering add-on (with fix) #77

ideasman42 opened this issue Oct 24, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ideasman42
Copy link

ideasman42 commented Oct 24, 2024

If you un-register and re-register this add-on, there is an error:
pcb2blender_importer/__init__.py

ValueError: register_class(...): already registered as a subclass 'PCB2BLENDER_OT_import_pcb3d'

This is caused by the register function always adding to _modules.

To fix this, at the start of register(..) in pcb2blender_importer/__init__.py run: _modules.clear() .

@30350n
Copy link
Owner

30350n commented Oct 25, 2024

Fixed! Thanks for catching that and providing the fix ^^

@30350n 30350n closed this as completed Oct 25, 2024
@30350n 30350n self-assigned this Oct 25, 2024
@30350n 30350n added the bug Something isn't working label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants