Python / Cleanup: rename INFO_MT to TOPBAR_MT/VIEW3D_MT to reflect actual location.

This commit is contained in:
2018-08-29 15:02:21 +02:00
parent 42f7767dab
commit 0d085790d1
17 changed files with 117 additions and 185 deletions

View File

@@ -123,12 +123,12 @@ def menu_func(self, context):
def register():
bpy.utils.register_class(AddBox)
bpy.types.INFO_MT_mesh_add.append(menu_func)
bpy.types.VIEW3D_MT_mesh_add.append(menu_func)
def unregister():
bpy.utils.unregister_class(AddBox)
bpy.types.INFO_MT_mesh_add.remove(menu_func)
bpy.types.VIEW3D_MT_mesh_add.remove(menu_func)
if __name__ == "__main__":