From 71b4a1f6abf4586e6b142c514e9654b4bc12013a Mon Sep 17 00:00:00 2001 From: Ilya Portnov Date: Wed, 25 Feb 2015 21:41:36 +0500 Subject: [PATCH] Update bmesh normals before recalculating. This fixes normals if mesh was composed of several parts using Mesh Join or similar nodes. --- nodes/modifier_change/recalc_normals.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nodes/modifier_change/recalc_normals.py b/nodes/modifier_change/recalc_normals.py index 248d20056..c5faddc4d 100644 --- a/nodes/modifier_change/recalc_normals.py +++ b/nodes/modifier_change/recalc_normals.py @@ -69,6 +69,7 @@ class SvRecalcNormalsNode(bpy.types.Node, SverchCustomTreeNode): for vertices, edges, faces, mask in zip(*meshes): bm = bmesh_from_pydata(vertices, edges, faces) + bm.normal_update() fullList(mask, len(faces)) b_faces = [] -- GitLab