From e5b031dbd4d6603cc6aa6f2ecca59d09d0f94a9e Mon Sep 17 00:00:00 2001 From: Eric Gentry Date: Sun, 5 May 2019 14:06:44 -0400 Subject: [PATCH] Added Blender API update fixes to unregister() --- mesh_mesh_align_plus/__init__.py | 2 +- mesh_mesh_align_plus/utils/system.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mesh_mesh_align_plus/__init__.py b/mesh_mesh_align_plus/__init__.py index 4988f89..78b4812 100644 --- a/mesh_mesh_align_plus/__init__.py +++ b/mesh_mesh_align_plus/__init__.py @@ -33,7 +33,7 @@ "based on geometry and measurements from your scene." ), "author": "Eric Gentry", - "version": (0, 5, 1), + "version": (0, 5, 2), "blender": (2, 80, 0), "location": ( "3D View > N Panel > Mesh Align Plus tab, and" diff --git a/mesh_mesh_align_plus/utils/system.py b/mesh_mesh_align_plus/utils/system.py index a3f89ae..304efd8 100644 --- a/mesh_mesh_align_plus/utils/system.py +++ b/mesh_mesh_align_plus/utils/system.py @@ -566,8 +566,8 @@ def register(): def unregister(): del bpy.types.Scene.maplus_data - bpy.types.VIEW3D_MT_object_specials.remove(maplus_guitools.specials_menu_items) - bpy.types.VIEW3D_MT_edit_mesh_specials.remove(maplus_guitools.specials_menu_items) + bpy.types.VIEW3D_MT_object_context_menu.remove(maplus_guitools.specials_menu_items) + bpy.types.VIEW3D_MT_edit_mesh_context_menu.remove(maplus_guitools.specials_menu_items) # Remove custom classes from blender's bpy.types for cls in reversed(classes):