Blender Git Loki

Git Commits -> Revision d3f578c

June 7, 2016, 19:55 (GMT)
Initial work to allow custom normals setting in BMesh, with quick bmesh py API call too.

Seems to be working OK from quick tests...

Some notes:
- This is mimicking BKE_mesh_evaluate code. While this is OK for some cases,
we'll likely want some more integrated and fine-grained ways to set/edit those
normals in Edit mode once we create real editing tools for those (most likely based
on some BMesh operators).
This implies some kind of dynamic caching/update of clnors spaces though, which
is not trivial. So kept for later, for now you have to set all custom normals at once.
- Not sure where/how to expose this in py API, for now just added a func in bmesh.utils.

Commit Details:

Full Hash: d3f578c7e772e65189bcc94ba42ee75e7c7a75a5
Parent Commit: 9081adf
Lines Changed: +468, -3

5 Modified Paths:

/source/blender/blenkernel/BKE_mesh.h (+3, -0) (Diff)
/source/blender/blenkernel/intern/mesh_evaluate.c (+1, -3) (Diff)
/source/blender/bmesh/intern/bmesh_mesh.c (+328, -0) (Diff)
/source/blender/bmesh/intern/bmesh_mesh.h (+10, -0) (Diff)
/source/blender/python/bmesh/bmesh_py_utils.c (+126, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021