diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-05-08 19:48:00 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-05-08 19:48:00 +0400 |
commit | 5a8d7af642d8770cfc8e3b120f7de021efa1cbb9 (patch) | |
tree | 8ec20efb43d9656bc9fb41e2f21790dd7a6b6fd3 /source/blender | |
parent | bbf6db0c0cbf395eb8879e878754b2219f5c10b8 (diff) |
Fix T40074: Autosmooth option causes assert failure when selected.
No need to call `dm_ensure_display_normals()` when using loop normals,
poly/vert ones have already been computed!
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/DerivedMesh.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/DerivedMesh.c b/source/blender/blenkernel/intern/DerivedMesh.c index 8ffa61843b6..72e39fbb7c2 100644 --- a/source/blender/blenkernel/intern/DerivedMesh.c +++ b/source/blender/blenkernel/intern/DerivedMesh.c @@ -1884,8 +1884,11 @@ static void mesh_calc_modifiers(Scene *scene, Object *ob, float (*inputVertexCos * which deals with drawing differently. * * Only calc vertex normals if they are flagged as dirty. + * If using loop normals, poly nors have already been computed. */ - dm_ensure_display_normals(finaldm); + if (!do_loop_normals) { + dm_ensure_display_normals(finaldm); + } } #ifdef WITH_GAMEENGINE |