diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2018-04-18 13:27:31 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2018-04-18 13:28:13 +0300 |
commit | 9b338e802805bb7dbf981512923d6a1f343fbaa8 (patch) | |
tree | bf30dd58f5668e6377526acd1be46bfb8ba7ec03 /source/blender/blenkernel | |
parent | ea0630ade6f4c54fe1077a362f03b891e69e4b72 (diff) | |
parent | 287d1924fa149f0b52c75c387eac9d6621bb79bd (diff) |
Merge remote-tracking branch 'origin/master' into blender2.8
Explicitly undoing 287d1924fa149f0 here, as that was a master-only change.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/particle.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/particle.c b/source/blender/blenkernel/intern/particle.c index e1e24a24245..07c8735f108 100644 --- a/source/blender/blenkernel/intern/particle.c +++ b/source/blender/blenkernel/intern/particle.c @@ -3540,10 +3540,17 @@ float psys_get_child_size(ParticleSystem *psys, ChildParticle *cpa, float UNUSED ParticleSettings *part = psys->part; float size; // time XXX - if (part->childtype == PART_CHILD_FACES) - size = part->size; - else + if (part->childtype == PART_CHILD_FACES) { + int w = 0; + size = 0.0; + while (w < 4 && cpa->pa[w] >= 0) { + size += cpa->w[w] * (psys->particles + cpa->pa[w])->size; + w++; + } + } + else { size = psys->particles[cpa->parent].size; + } size *= part->childsize; |