diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-29 11:36:19 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-29 11:36:19 +0300 |
commit | 2bb4977c4a85c78b8844e47d32c54ccf8e2d7613 (patch) | |
tree | 1e621ef87c9d9c536e73922a76790cc2a96dd087 /source/blender/blenkernel/intern | |
parent | 77e32e88198b9d40854b085c82fab36e7a87f6a5 (diff) |
Fix T55203: Particle hair weights are not preserved
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/particle_system.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c index cba0721ab3f..94abfe72b34 100644 --- a/source/blender/blenkernel/intern/particle_system.c +++ b/source/blender/blenkernel/intern/particle_system.c @@ -3043,6 +3043,7 @@ static void hair_create_input_mesh(ParticleSimulationData *sim, int totpoint, in if (!mesh) { *r_mesh = mesh = BKE_mesh_new_nomain(totpoint, totedge, 0, 0, 0); CustomData_add_layer(&mesh->vdata, CD_MDEFORMVERT, CD_CALLOC, NULL, mesh->totvert); + BKE_mesh_update_customdata_pointers(mesh, false); } mvert = mesh->mvert; medge = mesh->medge; |