Python / Cleanup: rename INFO_MT to TOPBAR_MT/VIEW3D_MT to reflect actual location.
This commit is contained in:
		@@ -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__":
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user