Python / Cleanup: rename INFO_MT to TOPBAR_MT/VIEW3D_MT to reflect actual location.
This commit is contained in:
@@ -15,4 +15,4 @@ def menu_draw(self, context):
|
||||
self.layout.operator("wm.save_homefile")
|
||||
|
||||
|
||||
bpy.types.INFO_MT_file.append(menu_draw)
|
||||
bpy.types.TOPBAR_MT_file.append(menu_draw)
|
||||
|
@@ -45,7 +45,7 @@ def menu_func(self, context):
|
||||
|
||||
# Register and add to the file selector
|
||||
bpy.utils.register_class(ExportSomeData)
|
||||
bpy.types.INFO_MT_file_export.append(menu_func)
|
||||
bpy.types.TOPBAR_MT_file_export.append(menu_func)
|
||||
|
||||
|
||||
# test call
|
||||
|
Reference in New Issue
Block a user