Remove a couple of unuseful lines

This commit is contained in:
Francesco Bellini 2024-08-18 22:59:13 +02:00
parent 3dc5dca176
commit 78c384c850
3 changed files with 0 additions and 4 deletions

View File

@ -49,7 +49,6 @@ classes = [WM_MT_splash,
def register(): def register():
for c in classes: for c in classes:
bpy.utils.register_class(c) bpy.utils.register_class(c)
bpy.types.TOPBAR_MT_file_new.remove(draw_file_new_templates)
bpy.types.TOPBAR_MT_file_new.append(draw_file_new_templates) bpy.types.TOPBAR_MT_file_new.append(draw_file_new_templates)
bpy.types.TOPBAR_MT_file_defaults.append(draw_file_default_operators) bpy.types.TOPBAR_MT_file_defaults.append(draw_file_default_operators)

View File

@ -15,8 +15,6 @@ def draw_file_new_templates(self, context):
draw_templates_on_col(layout, context) draw_templates_on_col(layout, context)
def draw_templates_on_col(layout, context, splash_mode = False): def draw_templates_on_col(layout, context, splash_mode = False):
layout.operator_context = 'INVOKE_DEFAULT'
prefs = context.preferences.addons[base_package].preferences prefs = context.preferences.addons[base_package].preferences
for i in range(min(5, len(prefs.projects)) if splash_mode else len(prefs.projects)): for i in range(min(5, len(prefs.projects)) if splash_mode else len(prefs.projects)):
project = prefs.projects[i] project = prefs.projects[i]

View File

@ -19,7 +19,6 @@ class WM_MT_splash(bpy.types.Menu):
# Templates # Templates
col1 = split.column() col1 = split.column()
ct_split = col1.split(factor=0.9) ct_split = col1.split(factor=0.9)
colA = ct_split.column() colA = ct_split.column()
if prefs.override_splash and len(prefs.projects) > 0: if prefs.override_splash and len(prefs.projects) > 0: