Brushstroke Tools: Initial Version #328
@ -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
|
Binary file not shown.
@ -126,7 +126,8 @@ def register_asset_lib():
|
|||||||
return
|
return
|
||||||
lib = asset_libs.new()
|
lib = asset_libs.new()
|
||||||
SimonThommes marked this conversation as resolved
Outdated
|
|||||||
lib.name = asset_lib_name
|
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():
|
def unregister_asset_lib():
|
||||||
asset_libs = bpy.context.preferences.filepaths.asset_libraries
|
asset_libs = bpy.context.preferences.filepaths.asset_libraries
|
||||||
|
Loading…
Reference in New Issue
Block a user
Would recommend using
x not in y
instead ofnot x in y
for improved readability.https://stackoverflow.com/a/3481700