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>2011-04-01 22:35:49 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-04-01 22:35:49 +0400
commitd40b0dfb758eb45027ba7b9b4fc4e9477f201480 (patch)
treea41be833e5b097db8d081087663a6d2ef9d83398 /source/blender/blenkernel/intern/mesh.c
parent18fd4d3137db8756c85d4cc8593e52aac2939970 (diff)
Comments for mesh normals calculation from Mortem Mikkelsen (aka sparky).
We hope it'll help for further workers in this area!
Diffstat (limited to 'source/blender/blenkernel/intern/mesh.c')
-rw-r--r--source/blender/blenkernel/intern/mesh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c
index 6f528ec3ea8..7302abe8968 100644
--- a/source/blender/blenkernel/intern/mesh.c
+++ b/source/blender/blenkernel/intern/mesh.c
@@ -1301,6 +1301,8 @@ void mesh_calc_normals(MVert *mverts, int numVerts, MFace *mfaces, int numFaces,
}
/* build smooth normals for uninitialized normals at faces set to flat */
+ /* For such faces the renderer/3Dview and exporters will be using the face normal */
+ /* The vertex normals built inside this if-statement are entirely to support the needs of the modeler */
if(found_flat!=0) {
const int nr_bits= sizeof(int)*8;
const int nr_words= (numVerts+(nr_bits-1))/nr_bits;