Cleanup and add some functions, and fix bugs #208
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added prefs and tt_settings functions for easier readability
replaced format function with f-string (they are more readable and faster).
Fixed some PEPs, deleted unused code sections
and the latest
GitHub adds suffixes like -master, -blender etc, the user when installing an addon, it creates 2 such addons, the inclusion of one, causes the release of rna data of the previous version of the addon, and the corresponding error is given, and the panels are incorrectly released, or to be more precise not released at all, causing errors in the console or duplicated many times, clogging all the menus.
Handle this error is not enough not to reload blender, I have changed the system reload modules, now it is forced, it gets rid of many problems, and develop addon more convenient (because I do not work the old reload modules, and have to reload blender, and so turned on and off addon and all the changes are made), yes a slight overhead has, but not essential.
Fixed baking Dust and Element ID, the error occurred when the object already had a vertex color, but another type, and indexing from this broke, made indexing through them