Skip to content

Commit

Permalink
fix: remove all ND menus from info header bar
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-hm committed Apr 24, 2022
1 parent 7827900 commit db17157
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions interface/array_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ def draw_item(self, context):

def register():
bpy.utils.register_class(ND_MT_array_menu)
bpy.types.INFO_HT_header.append(draw_item)


def unregister():
bpy.utils.unregister_class(ND_MT_array_menu)
bpy.types.INFO_HT_header.remove(draw_item)
2 changes: 0 additions & 2 deletions interface/bevel_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ def draw_item(self, context):

def register():
bpy.utils.register_class(ND_MT_bevel_menu)
bpy.types.INFO_HT_header.append(draw_item)


def unregister():
bpy.utils.unregister_class(ND_MT_bevel_menu)
bpy.types.INFO_HT_header.remove(draw_item)
2 changes: 0 additions & 2 deletions interface/boolean_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ def draw_item(self, context):

def register():
bpy.utils.register_class(ND_MT_boolean_menu)
bpy.types.INFO_HT_header.append(draw_item)


def unregister():
bpy.utils.unregister_class(ND_MT_boolean_menu)
bpy.types.INFO_HT_header.remove(draw_item)
2 changes: 0 additions & 2 deletions interface/extrude_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ def draw_item(self, context):

def register():
bpy.utils.register_class(ND_MT_extrude_menu)
bpy.types.INFO_HT_header.append(draw_item)


def unregister():
bpy.utils.unregister_class(ND_MT_extrude_menu)
bpy.types.INFO_HT_header.remove(draw_item)
2 changes: 0 additions & 2 deletions interface/main_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def draw_item(self, context):

def register():
bpy.utils.register_class(ND_MT_main_menu)
bpy.types.INFO_HT_header.append(draw_item)

for mapping in [('3D View', 'VIEW_3D'), ('Mesh', 'EMPTY'), ('Object Mode', 'EMPTY')]:
keymap = bpy.context.window_manager.keyconfigs.addon.keymaps.new(name=mapping[0], space_type=mapping[1])
Expand All @@ -69,4 +68,3 @@ def unregister():
keys.clear()

bpy.utils.unregister_class(ND_MT_main_menu)
bpy.types.INFO_HT_header.remove(draw_item)
2 changes: 0 additions & 2 deletions interface/utils_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ def draw_item(self, context):

def register():
bpy.utils.register_class(ND_MT_utils_menu)
bpy.types.INFO_HT_header.append(draw_item)


def unregister():
bpy.utils.unregister_class(ND_MT_utils_menu)
bpy.types.INFO_HT_header.remove(draw_item)
2 changes: 0 additions & 2 deletions interface/viewport_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def draw_item(self, context):

def register():
bpy.utils.register_class(ND_MT_viewport_menu)
bpy.types.INFO_HT_header.append(draw_item)

for mapping in [('3D View', 'VIEW_3D'), ('Mesh', 'EMPTY'), ('Object Mode', 'EMPTY')]:
keymap = bpy.context.window_manager.keyconfigs.addon.keymaps.new(name=mapping[0], space_type=mapping[1])
Expand All @@ -42,4 +41,3 @@ def unregister():
keys.clear()

bpy.utils.unregister_class(ND_MT_viewport_menu)
bpy.types.INFO_HT_header.remove(draw_item)

0 comments on commit db17157

Please sign in to comment.