From 13e778893bd20af4a742df9cd506327b1c9c2d23 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 23 Feb 2012 12:28:18 +0000 Subject: Fix #30320: Shading issue with boolean modifier Seems that after converting tessfaces into faces normals should be re-calculated. At least that's what happening in some other modifiers and what makes boolean work fine with smooth normals. --- source/blender/modifiers/intern/MOD_boolean_util.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/modifiers/intern/MOD_boolean_util.c') diff --git a/source/blender/modifiers/intern/MOD_boolean_util.c b/source/blender/modifiers/intern/MOD_boolean_util.c index 510179c01d7..551f501b1d0 100644 --- a/source/blender/modifiers/intern/MOD_boolean_util.c +++ b/source/blender/modifiers/intern/MOD_boolean_util.c @@ -466,6 +466,7 @@ static DerivedMesh *ConvertCSGDescriptorsToDerivedMesh( CDDM_calc_edges_tessface(result); CDDM_tessfaces_to_faces(result); /*builds ngon faces from tess (mface) faces*/ + CDDM_calc_normals(result); return result; } -- cgit v1.2.3