Revert "UI: File menu tweaks."
This reverts commitb104b3cdcf
and04baefcc2f
. Changes to core UI like this should go through review, and doing them during Beta development is not generally the right moment unless they fix an important problem.
This commit is contained in:
parent
31509461f1
commit
e795dd4a20
Notes:
blender-bot
2023-02-14 09:02:40 +01:00
Referenced by issue #62221, Grease pencil & unusual fill artifact Referenced by issue #62095, On Viewport Render, Camera BackGround Image is misaligned Referenced by issue #62102, Extrude of predefined grease pencil line stroke delayed Referenced by issue #62087, Crash when rendering in Cycles Referenced by issue #62093, Blender crashes when attempting to render scene with hide_render keyframes Referenced by issue #62094, Unable to insert a hide_viewport keyframe via the UI
|
@ -563,12 +563,11 @@ class TOPBAR_MT_file(Menu):
|
|||
|
||||
layout.operator_context = 'INVOKE_AREA'
|
||||
layout.menu("TOPBAR_MT_file_new", text="New", icon='FILE_NEW')
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.operator("wm.open_mainfile", text="Open...", icon='FILE_FOLDER')
|
||||
layout.menu("TOPBAR_MT_file_open_recent")
|
||||
layout.menu("TOPBAR_MT_file_recover")
|
||||
layout.operator("wm.revert_mainfile")
|
||||
layout.operator("wm.recover_last_session")
|
||||
layout.operator("wm.recover_auto_save", text="Recover Auto Save...")
|
||||
|
||||
layout.separator()
|
||||
|
||||
|
@ -579,22 +578,8 @@ class TOPBAR_MT_file(Menu):
|
|||
layout.operator("wm.save_as_mainfile", text="Save As...")
|
||||
layout.operator_context = 'INVOKE_AREA'
|
||||
layout.operator("wm.save_as_mainfile", text="Save Copy...").copy = True
|
||||
layout.menu("TOPBAR_MT_file_export", icon='EXPORT')
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.operator_context = 'INVOKE_AREA'
|
||||
layout.operator("wm.link", text="Link...", icon='LINK_BLEND')
|
||||
layout.operator("wm.append", text="Append...", icon='APPEND_BLEND')
|
||||
layout.menu("TOPBAR_MT_file_import", icon='IMPORT')
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.menu("TOPBAR_MT_file_external_data")
|
||||
layout.menu("TOPBAR_MT_file_previews")
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.operator_context = 'INVOKE_AREA'
|
||||
|
||||
if any(bpy.utils.app_template_paths()):
|
||||
|
@ -619,6 +604,22 @@ class TOPBAR_MT_file(Menu):
|
|||
|
||||
layout.separator()
|
||||
|
||||
layout.operator_context = 'INVOKE_AREA'
|
||||
layout.operator("wm.link", text="Link...", icon='LINK_BLEND')
|
||||
layout.operator("wm.append", text="Append...", icon='APPEND_BLEND')
|
||||
layout.menu("TOPBAR_MT_file_previews")
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.menu("TOPBAR_MT_file_import", icon='IMPORT')
|
||||
layout.menu("TOPBAR_MT_file_export", icon='EXPORT')
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.menu("TOPBAR_MT_file_external_data")
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.operator_context = 'EXEC_AREA'
|
||||
if bpy.data.is_dirty:
|
||||
layout.operator_context = 'INVOKE_SCREEN' # quit dialog
|
||||
|
@ -687,21 +688,6 @@ class TOPBAR_MT_file_new(Menu):
|
|||
TOPBAR_MT_file_new.draw_ex(self.layout, context)
|
||||
|
||||
|
||||
class TOPBAR_MT_file_recover(Menu):
|
||||
bl_label = "Recover"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
layout.operator("wm.recover_auto_save", text="Recover Auto Save...")
|
||||
layout.operator("wm.recover_last_session")
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.operator_context = 'INVOKE_AREA'
|
||||
layout.operator("wm.revert_mainfile")
|
||||
|
||||
|
||||
class TOPBAR_MT_templates_more(Menu):
|
||||
bl_label = "Templates"
|
||||
|
||||
|
@ -1060,7 +1046,6 @@ classes = (
|
|||
TOPBAR_MT_editor_menus,
|
||||
TOPBAR_MT_file,
|
||||
TOPBAR_MT_file_new,
|
||||
TOPBAR_MT_file_recover,
|
||||
TOPBAR_MT_templates_more,
|
||||
TOPBAR_MT_file_import,
|
||||
TOPBAR_MT_file_export,
|
||||
|
|
Loading…
Reference in New Issue