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

UV higlight is blocking scripts reloading with F8 key #4

Open
JoseConseco opened this issue Jan 10, 2018 · 2 comments
Open

UV higlight is blocking scripts reloading with F8 key #4

JoseConseco opened this issue Jan 10, 2018 · 2 comments

Comments

@JoseConseco
Copy link

I can't reload my addon scripts with F8 hotkey. Error is:
' can't reload scripts while running modal opeartor'.
Thing is even if I disable all HighlightUv checkboxes, it is still running some modal operator in background.
I have to disable UV Highlight completely from users preferences.
I think this mysterious background operator is also slowing blender a bit. It would be great if
a) by default all uv highlight checboxes wold be disabled, so user can enable them just when he need it.
b) if all checkboxes are disabled, all background operators/handlers should be removed too.

@BenjaminSauder
Copy link
Owner

Hi there,

yes i know this is a very annoying problem. I looked a bit into it, and its been not so easy to fix.
best what I have so far is that you can reload scripts with f8 but have to press it two times...

The only reason things are as they are, is that I dont know how to track the key input&mouse correctly without keeping a background modal running. Which creates this f8 problem.

Its not really possible to do this script without this background tracking /caching mechanics as I have to monitor the mesh and uvs for changes. Especially the preselection is pretty heavy to gather. That said, the calculation of these is already skipped if not enabled. As noted in the addons description, I really think this should be done in the C side of blender, as its just too heavy for python. (my implementation could surely be sped up ...)

@JoseConseco
Copy link
Author

Ok, disabling broken addons helped to get rid of freezing when using F8 to reload scripts. Also disabling debbuger from vs code, before F8 also helps prevent crash/freezes.
Yes F8 if bit overkill, but it takes like blink of an eye :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants