Remove a couple of unuseful lines
This commit is contained in:
parent
3dc5dca176
commit
78c384c850
@ -49,7 +49,6 @@ classes = [WM_MT_splash,
|
||||
def register():
|
||||
for c in classes:
|
||||
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_defaults.append(draw_file_default_operators)
|
||||
|
||||
|
@ -15,8 +15,6 @@ def draw_file_new_templates(self, context):
|
||||
draw_templates_on_col(layout, context)
|
||||
|
||||
def draw_templates_on_col(layout, context, splash_mode = False):
|
||||
layout.operator_context = 'INVOKE_DEFAULT'
|
||||
|
||||
prefs = context.preferences.addons[base_package].preferences
|
||||
for i in range(min(5, len(prefs.projects)) if splash_mode else len(prefs.projects)):
|
||||
project = prefs.projects[i]
|
||||
|
@ -19,7 +19,6 @@ class WM_MT_splash(bpy.types.Menu):
|
||||
|
||||
# Templates
|
||||
col1 = split.column()
|
||||
|
||||
ct_split = col1.split(factor=0.9)
|
||||
colA = ct_split.column()
|
||||
if prefs.override_splash and len(prefs.projects) > 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user