Brushstroke Tools: Initial Version #328

Merged
Simon Thommes merged 229 commits from SimonThommes/blender-studio-tools:brushstroke_tools-initial-version into main 2024-11-06 15:03:47 +01:00
Showing only changes of commit 8efaf4ad50 - Show all commits

View File

@ -1,5 +1,5 @@
from . import utils, icons, settings, ui, draw_tool, ops from . import utils, icons, settings, ui, draw_tool, ops
import toml import tomllib as toml
import bpy import bpy
modules = [utils, icons, settings, ui, draw_tool, ops] modules = [utils, icons, settings, ui, draw_tool, ops]
@ -10,7 +10,8 @@ def register():
m.register() m.register()
SimonThommes marked this conversation as resolved Outdated

Generally it's recommended to unregister in reverse registration order: for m in reversed(modules):

Generally it's recommended to unregister in reverse registration order: `for m in reversed(modules):`
# read addon meta-data # read addon meta-data
manifest = toml.load(f"{utils.get_addon_directory()}/blender_manifest.toml") with open(f"{utils.get_addon_directory()}/blender_manifest.toml", 'rb') as f:
manifest = toml.load(f)
utils.addon_version = tuple([int(i) for i in manifest['version'].split('.')]) utils.addon_version = tuple([int(i) for i in manifest['version'].split('.')])
# Add addon asset library # Add addon asset library