The buttons I created stopped working, they worked in blender 2.79. By the way, the standard buttons work, but my not. Any thoughts on this? Please tell me what could be the reason. Thank!
class ALLSELECTDELETE_PT_operator(bpy.types.Operator): """All select and delete""" bl_label = "Delete all" bl_idname = "object.all_select_delete" bl_description = "All select and delete" def execute(self, context): bpy.ops.object.mode_set(mode='OBJECT') bpy.ops.object.select_all(action='SELECT') bpy.ops.object.delete(use_global=False) bpy.ops.view3d.snap_cursor_to_center()