Templates: set autosmooth threshold to 30°, matching default for new meshes.
This commit is contained in:
parent
113a70808c
commit
d1ff122db6
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue