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

Update registration for 2.8 #7

Open
wants to merge 3 commits into
base: blender280
Choose a base branch
from
Open
Changes from all commits
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
10 changes: 5 additions & 5 deletions remove_unused_vertexGroups.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Remove unused Vertex Groups",
"author": "CoDEmanX",
"version": (1, 0),
"blender": (2, 70, 0),
"blender": (2, 80, 0),
"location": "Properties Editor > Object data > Vertex Groups > Specials menu",
"description": "Delete Vertex Groups with no assigned weight of active object",
"warning": "",
Expand Down Expand Up @@ -51,13 +51,13 @@ def draw_func(self, context):


def register():
bpy.utils.register_module(__name__)
bpy.types.MESH_MT_vertex_group_specials.prepend(draw_func)
bpy.utils.register_class(OBJECT_OT_vertex_group_remove_unused)
bpy.types.MESH_MT_vertex_group_context_menu.prepend(draw_func)


def unregister():
bpy.utils.unregister_module(__name__)
bpy.types.MESH_MT_vertex_group_specials.remove(draw_func)
bpy.utils.unregister_class(OBJECT_OT_vertex_group_remove_unused)
bpy.types.MESH_MT_vertex_group_context_menu.remove(draw_func)

if __name__ == "__main__":
register()
Expand Down