New review file

pull/6/head
ChristopheSeux 2024-04-22 22:30:36 +02:00
parent c9c84929e6
commit a335b28fb1
2 changed files with 11 additions and 1 deletions

View File

@ -453,6 +453,12 @@ def draw_vse_toolbox_menu(self, context):
self.layout.menu("VSETB_MT_main_menu")
def draw_file_new(self, context):
self.layout.separator()
op = self.layout.operator('wm.read_homefile', text="Review")
op.filepath = str(REVIEW_TEMPLATE_BLEND)
op.load_ui = True
classes = (
VSETB_PT_main,
@ -475,9 +481,13 @@ def register():
bpy.types.UI_MT_button_context_menu.append(context_menu_prop)
bpy.types.SEQUENCER_MT_editor_menus.append(draw_vse_toolbox_menu)
bpy.types.TOPBAR_MT_file_new.append(draw_file_new)
def unregister():
for cls in reversed(classes):
bpy.utils.unregister_class(cls)
bpy.types.UI_MT_button_context_menu.remove(context_menu_prop)
bpy.types.SEQUENCER_MT_editor_menus.remove(draw_vse_toolbox_menu)
bpy.types.TOPBAR_MT_file_new.remove(draw_file_new)