diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-01 17:38:14 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-01 18:32:59 +0300 |
commit | 238d30169f35cd820379890e5b1d047ea89c06a5 (patch) | |
tree | 056da72781b49d24ddfc38fc5594b30c0626216b /release/scripts/startup/bl_app_templates_system | |
parent | ac0dfcced30a75fed4017c0b5e1dc8600e6f1dd8 (diff) |
Templates: tweaks to startup templates, add sculpting template.
Diffstat (limited to 'release/scripts/startup/bl_app_templates_system')
-rw-r--r-- | release/scripts/startup/bl_app_templates_system/2D_Animation/startup.blend | bin | 568720 -> 575756 bytes | |||
-rw-r--r-- | release/scripts/startup/bl_app_templates_system/Sculpting/__init__.py | 24 | ||||
-rw-r--r-- | release/scripts/startup/bl_app_templates_system/Sculpting/startup.blend | bin | 0 -> 394852 bytes | |||
-rw-r--r-- | release/scripts/startup/bl_app_templates_system/VFX/startup.blend | bin | 525256 -> 505236 bytes | |||
-rw-r--r-- | release/scripts/startup/bl_app_templates_system/Video_Editing/startup.blend | bin | 432876 -> 405320 bytes |
5 files changed, 24 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_app_templates_system/2D_Animation/startup.blend b/release/scripts/startup/bl_app_templates_system/2D_Animation/startup.blend Binary files differindex 3f77afa4037..70fbe1baae6 100644 --- a/release/scripts/startup/bl_app_templates_system/2D_Animation/startup.blend +++ b/release/scripts/startup/bl_app_templates_system/2D_Animation/startup.blend diff --git a/release/scripts/startup/bl_app_templates_system/Sculpting/__init__.py b/release/scripts/startup/bl_app_templates_system/Sculpting/__init__.py new file mode 100644 index 00000000000..73fbfa7c7b0 --- /dev/null +++ b/release/scripts/startup/bl_app_templates_system/Sculpting/__init__.py @@ -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) + diff --git a/release/scripts/startup/bl_app_templates_system/Sculpting/startup.blend b/release/scripts/startup/bl_app_templates_system/Sculpting/startup.blend Binary files differnew file mode 100644 index 00000000000..720f1d50a6d --- /dev/null +++ b/release/scripts/startup/bl_app_templates_system/Sculpting/startup.blend diff --git a/release/scripts/startup/bl_app_templates_system/VFX/startup.blend b/release/scripts/startup/bl_app_templates_system/VFX/startup.blend Binary files differindex c2cef4e1cdf..43224a7d869 100644 --- a/release/scripts/startup/bl_app_templates_system/VFX/startup.blend +++ b/release/scripts/startup/bl_app_templates_system/VFX/startup.blend diff --git a/release/scripts/startup/bl_app_templates_system/Video_Editing/startup.blend b/release/scripts/startup/bl_app_templates_system/Video_Editing/startup.blend Binary files differindex 84c3c66f861..8718e2b06b9 100644 --- a/release/scripts/startup/bl_app_templates_system/Video_Editing/startup.blend +++ b/release/scripts/startup/bl_app_templates_system/Video_Editing/startup.blend |