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-11-15 20:28:51 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-11-15 20:35:57 +0300
commitd1ff122db668ddd325ae19bc1cc53b93cf385bf7 (patch)
treeb194d30df757990fcaca42deb502dfeb0a757b84 /source/blender/blenloader
parent113a70808c217e432719531571f7f07952e3d341 (diff)
Templates: set autosmooth threshold to 30°, matching default for new meshes.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_defaults.c10
1 files changed, 8 insertions, 2 deletions
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);
+ }
}
}