Blender Git Loki
Git Commits -> Revision b7bf20d
Revision b7bf20d by Campbell Barton (master) July 22, 2013, 22:59 (GMT) |
optimization: only calculate the normals for passing into derivedMesh foreachMappedVert/foreachMappedFaceCenter when needed, this means in editmode with wire draw, face and vertex normals don't have to be calculated at all. in most cases the normals are not used so add a flag that makes calculating them only for functions that need them. also fix face normal calculation for CDDM, was using quad calculation for ngons too. |
Commit Details:
Full Hash: b7bf20d9504127ec7c3d52bc8a1448d4a2bdc3bf
SVN Revision: 58517
Parent Commit: 33e52d0
Lines Changed: +126, -81
13 Modified Paths:
/source/blender/blenkernel/BKE_DerivedMesh.h (+9, -2) (Diff)
/source/blender/blenkernel/intern/anim.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/cdderivedmesh.c (+25, -28) (Diff)
/source/blender/blenkernel/intern/editderivedmesh.c (+55, -19) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+17, -12) (Diff)
/source/blender/editors/armature/armature_skinning.c (+1, -1) (Diff)
/source/blender/editors/mesh/meshtools.c (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/paint_vertex.c (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/paint_vertex_proj.c (+2, -2) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+9, -9) (Diff)
/source/blender/editors/space_view3d/view3d_iterators.c (+3, -3) (Diff)
/source/blender/editors/space_view3d/view3d_snap.c (+1, -1) (Diff)
/source/blender/editors/util/crazyspace.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/anim.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/cdderivedmesh.c (+25, -28) (Diff)
/source/blender/blenkernel/intern/editderivedmesh.c (+55, -19) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+17, -12) (Diff)
/source/blender/editors/armature/armature_skinning.c (+1, -1) (Diff)
/source/blender/editors/mesh/meshtools.c (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/paint_vertex.c (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/paint_vertex_proj.c (+2, -2) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+9, -9) (Diff)
/source/blender/editors/space_view3d/view3d_iterators.c (+3, -3) (Diff)
/source/blender/editors/space_view3d/view3d_snap.c (+1, -1) (Diff)
/source/blender/editors/util/crazyspace.c (+1, -1) (Diff)