diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-06-21 12:49:43 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-06-21 13:09:45 +0300 |
commit | 7070e4c15e6c57da2bd46534e654ed5f9a1e6600 (patch) | |
tree | 221ceb5195fd6d98d4485db40e78d16a379107c5 /source/blender/editors/transform | |
parent | 964e319a39abfe3808fded71dcacd296401ec04d (diff) |
Revert "Particle system: Move runtime data to runtime field"
This reverts commit 36faf739a71624b6ca10cec7233779f9eeace0bd.
Somewhat annoying but this change had some unforeseen consequences,
which lead to an actual bug.
Since this change was not sufficient to get original report fixed
is easier to simply revert for now.
Fixes T65842: Hair disappears when clicking on particle system name
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index a9acdcd001c..1ed0d5e9221 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -2424,8 +2424,8 @@ static void createTransParticleVerts(bContext *C, TransInfo *t) if (psys && !(psys->flag & PSYS_GLOBAL_HAIR)) { ParticleSystemModifierData *psmd_eval = edit->psmd_eval; - Mesh *mesh_final = BKE_particle_modifier_mesh_final_get(psmd_eval); - psys_mat_hair_to_global(ob, mesh_final, psys->part->from, psys->particles + i, mat); + psys_mat_hair_to_global( + ob, psmd_eval->mesh_final, psys->part->from, psys->particles + i, mat); } for (k = 0, key = point->keys; k < point->totkey; k++, key++) { @@ -2516,8 +2516,8 @@ void flushTransParticles(TransInfo *t) if (psys && !(psys->flag & PSYS_GLOBAL_HAIR)) { ParticleSystemModifierData *psmd_eval = edit->psmd_eval; - Mesh *mesh_final = BKE_particle_modifier_mesh_final_get(psmd_eval); - psys_mat_hair_to_global(ob, mesh_final, psys->part->from, psys->particles + i, mat); + psys_mat_hair_to_global( + ob, psmd_eval->mesh_final, psys->part->from, psys->particles + i, mat); invert_m4_m4(imat, mat); for (k = 0, key = point->keys; k < point->totkey; k++, key++) { |