Blender Git Commit Log
Git Commits -> Revision cf2ec5b
Revision cf2ec5b by Lukas Toenne November 28, 2014, 11:42 (GMT) |
CustomData layer for storing hair root locations as MSurfaceSamples. This requires converting the old messy particle num/num_dmcache/fuv/foffset data into the new mesh samples, which can potentially introduce floating point errors and inaccuracies due to lack of face index mapping in the new system. However, in any well-constructed particle system the hair roots should be nearest to their num face, so mapping would be accurate enough. If necessary face index data could be added to samples as a legacy code hack, but probably it's best to eventually replace the hair system as a whole anyway. |
Commit Details:
Full Hash: cf2ec5b88aa0d8dfeeb5de50669dca4d0c226de3
Parent Commit: a270a9f
Lines Changed: +188, -17
8 Modified Paths:
/source/blender/blenkernel/BKE_mesh_sample.h (+9, -0) (Diff)
/source/blender/blenkernel/BKE_particle.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/edithair_particles.c (+27, -6) (Diff)
/source/blender/blenkernel/intern/mesh_sample.c (+90, -0) (Diff)
/source/blender/blenkernel/intern/particle.c (+5, -0) (Diff)
/source/blender/bmesh/intern/bmesh_strands_conv.c (+49, -7) (Diff)
/source/blender/bmesh/intern/bmesh_strands_conv.h (+5, -2) (Diff)
/source/blender/makesdna/DNA_customdata_types.h (+2, -2) (Diff)
/source/blender/blenkernel/BKE_particle.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/edithair_particles.c (+27, -6) (Diff)
/source/blender/blenkernel/intern/mesh_sample.c (+90, -0) (Diff)
/source/blender/blenkernel/intern/particle.c (+5, -0) (Diff)
/source/blender/bmesh/intern/bmesh_strands_conv.c (+49, -7) (Diff)
/source/blender/bmesh/intern/bmesh_strands_conv.h (+5, -2) (Diff)
/source/blender/makesdna/DNA_customdata_types.h (+2, -2) (Diff)