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
3 changed files with 12 additions and 1 deletions
Showing only changes of commit 081f9e164d - Show all commits

View File

@ -0,0 +1,10 @@
# This is an Asset Catalog Definition file for Blender.
#
# Empty lines and lines starting with `#` will be ignored.
# The first non-ignored line should be the version indicator.
# Other lines are of the format "UUID:catalog/path/for/assets:simple catalog name"
VERSION 1
39d602da-9c11-471c-a99f-996e474e8e9a:Edge:Edge
4cee84fd-9d34-4ad1-b8f0-a6369e473f0d:Face:Face

View File

@ -126,7 +126,8 @@ def register_asset_lib():
return
lib = asset_libs.new()
lib.name = asset_lib_name
lib.path = get_addon_directory()
lib.path = f'{get_addon_directory()}/assets'
lib.use_relative_path = False
def unregister_asset_lib():
asset_libs = bpy.context.preferences.filepaths.asset_libraries