forked from bartvdbraak/blender
Templates: tweaks to startup templates, add sculpting template.
This commit is contained in:
parent
ac0dfcced3
commit
238d30169f
Binary file not shown.
Binary file not shown.
@ -0,0 +1,24 @@
|
||||
|
||||
import bpy
|
||||
from bpy.app.handlers import persistent
|
||||
|
||||
|
||||
@persistent
|
||||
def load_handler(dummy):
|
||||
import bpy
|
||||
if bpy.data.filepath == "":
|
||||
# Apply subdivision modifier on startup
|
||||
bpy.ops.object.mode_set(mode='OBJECT')
|
||||
bpy.ops.object.modifier_apply(modifier="Subdivision")
|
||||
bpy.ops.object.mode_set(mode='EDIT')
|
||||
bpy.ops.transform.tosphere(value=1.0)
|
||||
bpy.ops.object.mode_set(mode='SCULPT')
|
||||
|
||||
def register():
|
||||
import bpy
|
||||
bpy.app.handlers.load_post.append(load_handler)
|
||||
|
||||
def unregister():
|
||||
import bpy
|
||||
bpy.app.handlers.load_post.remove(load_handler)
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -2576,6 +2576,7 @@ class WM_MT_splash(Menu):
|
||||
#userpref = context.user_preferences
|
||||
#sub.prop(userpref.system, "language", text="")
|
||||
|
||||
col.label()
|
||||
col.label()
|
||||
|
||||
layout.label()
|
||||
|
@ -141,6 +141,7 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template)
|
||||
/* For all builtin templates shipped with Blender. */
|
||||
bool builtin_template = !app_template ||
|
||||
STREQ(app_template, "2D_Animation") ||
|
||||
STREQ(app_template, "Sculpting") ||
|
||||
STREQ(app_template, "VFX") ||
|
||||
STREQ(app_template, "Video_Editing");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user