From d1ff122db668ddd325ae19bc1cc53b93cf385bf7 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 15 Nov 2018 18:28:51 +0100 Subject: =?UTF-8?q?Templates:=20set=20autosmooth=20threshold=20to=2030?= =?UTF-8?q?=C2=B0,=20matching=20default=20for=20new=20meshes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/blender/blenloader/intern/versioning_defaults.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c index 533623039fa..ac441e33ebc 100644 --- a/source/blender/blenloader/intern/versioning_defaults.c +++ b/source/blender/blenloader/intern/versioning_defaults.c @@ -33,13 +33,14 @@ #include "BLI_string.h" #include "DNA_gpencil_types.h" +#include "DNA_mesh_types.h" +#include "DNA_object_types.h" #include "DNA_scene_types.h" #include "DNA_screen_types.h" #include "DNA_space_types.h" #include "DNA_userdef_types.h" -#include "DNA_object_types.h" -#include "DNA_workspace_types.h" #include "DNA_windowmanager_types.h" +#include "DNA_workspace_types.h" #include "BKE_colortools.h" #include "BKE_layer.h" @@ -224,5 +225,10 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template) /* Rename render layers. */ BKE_view_layer_rename(bmain, scene, scene->view_layers.first, "View Layer"); } + + for (Mesh *mesh = bmain->mesh.first; mesh; mesh = mesh->id.next) { + /* Match default for new meshes. */ + mesh->smoothresh = DEG2RADF(30); + } } } -- cgit v1.2.3