Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Karhu <jhkarh@gmail.com>2010-04-06 12:43:52 +0400
committerJanne Karhu <jhkarh@gmail.com>2010-04-06 12:43:52 +0400
commitf1ac9b559e7919d82eb553c1a534d9f8de80af51 (patch)
treea8fedc90aac6eee749c06eb93b5fcc8d3f206827 /source/blender/blenkernel/intern/modifier.c
parent12f2a752946600f6a2e77121b97a822ffd8134a9 (diff)
"Fix" for [#21591] Explode modifier bug
* The new default particle size is quite small, so exploded pieces didn't match the original pieces * There's now an option to use the particle size (useful for some effects), but it isn't used by default * This commit will change how some old files look (explode modifier and not 1.0 particle size), but the exact old behavior is achieved with the new "size" option
Diffstat (limited to 'source/blender/blenkernel/intern/modifier.c')
-rw-r--r--source/blender/blenkernel/intern/modifier.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/modifier.c b/source/blender/blenkernel/intern/modifier.c
index 76e49c0726b..51e4ae37cd9 100644
--- a/source/blender/blenkernel/intern/modifier.c
+++ b/source/blender/blenkernel/intern/modifier.c
@@ -8637,7 +8637,8 @@ static DerivedMesh * explodeModifier_explodeMesh(ExplodeModifierData *emd,
/* apply rotation, size & location */
mul_qt_v3(state.rot,vertco);
- mul_v3_fl(vertco,pa->size);
+ if(emd->flag & eExplodeFlag_PaSize)
+ mul_v3_fl(vertco,pa->size);
VECADD(vertco,vertco,state.co);
mul_m4_v3(imat,vertco);