rename normal calc functions.
authorCampbell Barton <ideasman42@gmail.com>
Fri, 6 Jan 2012 00:08:37 +0000 (00:08 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 6 Jan 2012 00:08:37 +0000 (00:08 +0000)
commit2b2c1007f6a960274f3ddbcfa0ac2849e65894c9
treec98b9422fc4df7d2090dbe6d5e75d0077993fd52
parent2c9f08302c13ace22befb0603ec5f5ee2c7f31b1
rename normal calc functions.

comparing bmesh to trunk, mesh_calc_normals() in bmesh is a much more comprehensive function, calculating mpoly,mface normals, where trunk only calculated vertex normals.

renamed:
* mesh_calc_normals() --> mesh_calc_normals_mapping_ex
* mesh_calc_tessface_normals --> mesh_calc_normals_tessface() - only calculates normals from tessface
* added mesh_calc_normals() - only calculates normals from poltys

this way we can have mesh_calc_normals() remain fast for parts of the code which only need vertex normals to be updated.

only refactor, no func changes- didnt replace mesh_calc_normals_mapping_ex() with mesh_calc_normals() anywhere yet.
source/blender/blenkernel/BKE_mesh.h
source/blender/blenkernel/intern/cdderivedmesh.c
source/blender/blenkernel/intern/mesh.c
source/blender/blenlib/intern/pbvh.c
source/blender/blenloader/intern/readfile.c
source/blender/collada/MeshImporter.cpp
source/blender/editors/mesh/mesh_data.c
source/blender/editors/object/object_transform.c
source/blender/editors/sculpt_paint/sculpt.c
source/blender/editors/sculpt_paint/sculpt_undo.c