New review file
parent
c9c84929e6
commit
a335b28fb1
Binary file not shown.
10
ui/panels.py
10
ui/panels.py
|
@ -453,6 +453,12 @@ def draw_vse_toolbox_menu(self, context):
|
||||||
self.layout.menu("VSETB_MT_main_menu")
|
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 = (
|
classes = (
|
||||||
VSETB_PT_main,
|
VSETB_PT_main,
|
||||||
|
@ -475,9 +481,13 @@ def register():
|
||||||
bpy.types.UI_MT_button_context_menu.append(context_menu_prop)
|
bpy.types.UI_MT_button_context_menu.append(context_menu_prop)
|
||||||
bpy.types.SEQUENCER_MT_editor_menus.append(draw_vse_toolbox_menu)
|
bpy.types.SEQUENCER_MT_editor_menus.append(draw_vse_toolbox_menu)
|
||||||
|
|
||||||
|
bpy.types.TOPBAR_MT_file_new.append(draw_file_new)
|
||||||
|
|
||||||
def unregister():
|
def unregister():
|
||||||
for cls in reversed(classes):
|
for cls in reversed(classes):
|
||||||
bpy.utils.unregister_class(cls)
|
bpy.utils.unregister_class(cls)
|
||||||
|
|
||||||
bpy.types.UI_MT_button_context_menu.remove(context_menu_prop)
|
bpy.types.UI_MT_button_context_menu.remove(context_menu_prop)
|
||||||
bpy.types.SEQUENCER_MT_editor_menus.remove(draw_vse_toolbox_menu)
|
bpy.types.SEQUENCER_MT_editor_menus.remove(draw_vse_toolbox_menu)
|
||||||
|
|
||||||
|
bpy.types.TOPBAR_MT_file_new.remove(draw_file_new)
|
Loading…
Reference in New Issue