Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blender addon_enable API changes. #28

Merged
merged 2 commits into from
Mar 6, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pythonFiles/include/blender_vscode/load_addons.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def setup_addon_links(addon_paths):
def load(addon_paths):
for addon_path in addon_paths:
try:
bpy.ops.wm.addon_enable(module=addon_path.name)
bpy.ops.preferences.addon_enable(module=addon_path.name)
except:
traceback.print_exc()
send_dict_as_json({"type" : "enableFailure", "addonPath" : str(addon_path)})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def execute(self, context):
del sys.modules[name]

try:
bpy.ops.wm.addon_enable(module=self.module_name)
bpy.ops.preferences.addon_enable(module=self.module_name)
DotBow marked this conversation as resolved.
Show resolved Hide resolved
except:
traceback.print_exc()
send_dict_as_json({"type" : "enableFailure"})
Expand Down