Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-01 17:38:14 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-01 18:32:59 +0300
commit238d30169f35cd820379890e5b1d047ea89c06a5 (patch)
tree056da72781b49d24ddfc38fc5594b30c0626216b /release/scripts/startup/bl_app_templates_system
parentac0dfcced30a75fed4017c0b5e1dc8600e6f1dd8 (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.blendbin568720 -> 575756 bytes
-rw-r--r--release/scripts/startup/bl_app_templates_system/Sculpting/__init__.py24
-rw-r--r--release/scripts/startup/bl_app_templates_system/Sculpting/startup.blendbin0 -> 394852 bytes
-rw-r--r--release/scripts/startup/bl_app_templates_system/VFX/startup.blendbin525256 -> 505236 bytes
-rw-r--r--release/scripts/startup/bl_app_templates_system/Video_Editing/startup.blendbin432876 -> 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
index 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
Binary files differ
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
new file mode 100644
index 00000000000..720f1d50a6d
--- /dev/null
+++ b/release/scripts/startup/bl_app_templates_system/Sculpting/startup.blend
Binary files differ
diff --git a/release/scripts/startup/bl_app_templates_system/VFX/startup.blend b/release/scripts/startup/bl_app_templates_system/VFX/startup.blend
index 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
Binary files differ
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
index 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
Binary files differ