Split Normals I (1/5): basis for split normals (nearly nothing user-visible here):
authorBastien Montagne <montagne29@wanadoo.fr>
Sun, 13 Apr 2014 10:18:51 +0000 (12:18 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Sun, 13 Apr 2014 10:19:00 +0000 (12:19 +0200)
commit18e4224142261cd8a1086c5872efb406b82f8330
treea1a9f7680ab45158ec2c2755f76a966532cad8b8
parenta872d0b414f406a7d53ce77f7b43e7a831a68fa7
Split Normals I (1/5): basis for split normals (nearly nothing user-visible here):

* Add a new calcLoopNormals function to DerivedMesh struct, and implement it for CDDM and CCGDM (subsurf).
  EditDerivedBMesh (edit mode DM) only gets a dummy one in this commit.
* Add a tessellated version of CD_LOOPNORMAL layer (CD_TESSLOOPNORMAL), with relevant code to handle it
  (tessellation, rna access, etc.).
* Change auto_smooth options of Mesh (angle now in radian internaly, and toggle is now used to enable/disable
  split normals in DM creation process). Note BI render code is not touched here, hence its behavior regarding
  this option is now incoherent, will be addressed in a separate commit.

Reviewers: campbellbarton

CC: brecht
Differential Revision: https://developer.blender.org/D365
17 files changed:
release/scripts/startup/bl_ui/space_view3d.py
source/blender/blenkernel/BKE_DerivedMesh.h
source/blender/blenkernel/BKE_blender.h
source/blender/blenkernel/BKE_cdderivedmesh.h
source/blender/blenkernel/BKE_mesh.h
source/blender/blenkernel/intern/DerivedMesh.c
source/blender/blenkernel/intern/cdderivedmesh.c
source/blender/blenkernel/intern/customdata.c
source/blender/blenkernel/intern/editderivedmesh.c
source/blender/blenkernel/intern/mesh_evaluate.c
source/blender/blenkernel/intern/subsurf_ccg.c
source/blender/blenloader/intern/versioning_270.c
source/blender/blenloader/intern/versioning_defaults.c
source/blender/editors/space_view3d/drawobject.c
source/blender/makesdna/DNA_customdata_types.h
source/blender/makesdna/DNA_mesh_types.h
source/blender/makesrna/intern/rna_mesh.c