Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-02-23 16:28:18 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-02-23 16:28:18 +0400
commit13e778893bd20af4a742df9cd506327b1c9c2d23 (patch)
tree6e96122b39422a6e85f435e12ff6267fa223ce7c /source/blender/modifiers/intern/MOD_boolean_util.c
parente164cddc4317184898ca1eb9f39d106f194207ff (diff)
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.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_boolean_util.c')
-rw-r--r--source/blender/modifiers/intern/MOD_boolean_util.c1
1 files changed, 1 insertions, 0 deletions
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;
}