Fix T47638: Bad auto-smooth value for new meshes

Code was using degrees as radians.

Still unclear why default cube will have 180 degrees angle, but new meshes 30,
but that's kinda separate topic which is to be addressed separately.

This is a subject for final 2.77 release.
This commit is contained in:
Sergey Sharybin 2016-03-01 12:58:33 +01:00
parent a0db3c3966
commit 50500a4399
Notes: blender-bot 2023-02-14 08:09:01 +01:00
Referenced by issue #47638, Auto smooth angle value
1 changed files with 1 additions and 1 deletions

View File

@ -496,7 +496,7 @@ void BKE_mesh_init(Mesh *me)
BLI_assert(MEMCMP_STRUCT_OFS_IS_ZERO(me, id));
me->size[0] = me->size[1] = me->size[2] = 1.0;
me->smoothresh = 30;
me->smoothresh = DEG2RADF(30);
me->texflag = ME_AUTOSPACE;
/* disable because its slow on many GPU's, see [#37518] */