[d1ff122db66] blender2.8: Templates: set autosmooth threshold to 30°, matching default for new meshes.
Brecht Van Lommel
noreply at git.blender.org
Thu Nov 15 18:36:18 CET 2018
Commit: d1ff122db668ddd325ae19bc1cc53b93cf385bf7
Author: Brecht Van Lommel
Date: Thu Nov 15 18:28:51 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBd1ff122db668ddd325ae19bc1cc53b93cf385bf7
Templates: set autosmooth threshold to 30°, matching default for new meshes.
===================================================================
M source/blender/blenloader/intern/versioning_defaults.c
===================================================================
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);
+ }
}
}
More information about the Bf-blender-cvs
mailing list