diff options
-rw-r--r-- | source/blender/blenkernel/intern/particle.c | 13 | ||||
-rw-r--r-- | source/blender/makesdna/intern/makesdna.c | 2 |
2 files changed, 11 insertions, 4 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; diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c index d276e2c0859..a2c1e4d9463 100644 --- a/source/blender/makesdna/intern/makesdna.c +++ b/source/blender/makesdna/intern/makesdna.c @@ -464,7 +464,7 @@ static int preprocess_include(char *maindata, int len) if (cp[0] == '/' && cp[1] == '/') { comment = 1; } - else if (*cp < 32) { + else if (*cp == '\n') { comment = 0; } if (comment || *cp < 32 || *cp > 128) *cp = 32; |