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

Registering add-on of same name #56

Open
BrendanParmer opened this issue Jun 25, 2023 · 1 comment
Open

Registering add-on of same name #56

BrendanParmer opened this issue Jun 25, 2023 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@BrendanParmer
Copy link
Owner

Looks like Blender doesn't like it if you register two add-ons of the same name, investigate further what issues can arise and potential fixes

@BrendanParmer BrendanParmer added the bug Something isn't working label Jun 25, 2023
@BrendanParmer BrendanParmer added this to the v2.2 milestone Jun 25, 2023
@BrendanParmer BrendanParmer self-assigned this Jun 25, 2023
@BrendanParmer BrendanParmer removed this from the v2.2 milestone Aug 3, 2023
@BrendanParmer
Copy link
Owner Author

BrendanParmer commented Aug 3, 2023

Looks like if you try to register two add-ons generated from node trees with the same name, NodeToPython overwrite all the previously stored information about the old add-on. However, it seems like it tries to run the old operator unless you restart Blender.

Attempts could be made to detect if there are any addons/operators with the same name (https://blenderartists.org/t/how-to-know-if-an-operator-is-registered/638803/2). It seems murkier to try and differentiate between if you're just updating an old add-on, or if there are two separate add-ons that happen to share the same name.

For now, I don't think NodeToPython should try to be responsible for resolving these conflicts, but it's not out of the question for a future release

@BrendanParmer BrendanParmer added the wontfix This will not be worked on label Aug 27, 2023
@BrendanParmer BrendanParmer removed their assignment Jan 23, 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 wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant