Blender Git Loki
Git Commits -> Revision dc43df8
Revision dc43df8 by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:15 (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: dc43df89cd0514adad2e66e155d0894b7cdfc3b0
Parent Commit: 4e47239
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)