Merge branch 'master' into blender2.8
[blender.git] / source / blender / blenkernel / intern / editderivedmesh.c
index c8ae35980978e0e0cc365c85fdfe46d2e68c81f1..baf91b638b9239c7dc38cf00467daa0b33c1e453 100644 (file)
@@ -2018,7 +2018,7 @@ static void statvis_calc_distort(
                                                      vertexCos[BM_elem_index_get(l_iter->next->v)]);
                                }
                                else {
-                                       BM_loop_calc_face_normal(l_iter, no_corner);
+                                       BM_loop_calc_face_normal_safe(l_iter, no_corner);
                                }
                                /* simple way to detect (what is most likely) concave */
                                if (dot_v3v3(f_no, no_corner) < 0.0f) {