Fix addon

This commit is contained in:
2026-02-03 08:03:26 +03:00
parent 1d09728bc0
commit 4d47125ea9
5 changed files with 7 additions and 5 deletions

Binary file not shown.

View File

@@ -6,7 +6,7 @@ script_list = [item for item in file_list if item.endswith('.zip')]
for file in file_list:
path_to_file = os.path.join(path_to_script_dir, file)
bpy.ops.preferences.addon_install(overwrite=True, target='DEFAULT', filepath=path_to_file, filter_folder=True, filter_python=False, filter_glob="*.py;*.zip")
enableTheseAddons = ["VRM_Addon_for_Blender-release", "blender2ogre"]
enableTheseAddons = ["VRM_Addon_for_Blender-release", "io_ogre"]
for string in enableTheseAddons:
name = enableTheseAddons
bpy.ops.preferences.addon_enable(module = string)