From 2b2c1007f6a960274f3ddbcfa0ac2849e65894c9 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 6 Jan 2012 00:08:37 +0000 Subject: 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/editors/object/object_transform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/object/object_transform.c') diff --git a/source/blender/editors/object/object_transform.c b/source/blender/editors/object/object_transform.c index d1e4568b1cc..24061defa7c 100644 --- a/source/blender/editors/object/object_transform.c +++ b/source/blender/editors/object/object_transform.c @@ -480,7 +480,7 @@ static int apply_objects_internal(bContext *C, ReportList *reports, int apply_lo } /* update normals */ - mesh_calc_normals(me->mvert, me->totvert, me->mloop, me->mpoly, me->totloop, me->totpoly, NULL, NULL, 0, NULL, NULL); + mesh_calc_normals_mapping(me->mvert, me->totvert, me->mloop, me->mpoly, me->totloop, me->totpoly, NULL, NULL, 0, NULL, NULL); } else if (ob->type==OB_ARMATURE) { ED_armature_apply_transform(ob, mat); -- cgit v1.2.3