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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2007-12-12 20:01:46 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2007-12-12 20:01:46 +0300
commitde17fd9ee5431788e7e55daeb8e5ad6fb07894dc (patch)
tree66fd8e834f0a19a14ddfdcef51fa32135b3ca6ed /source/blender/src
parentbf5cc424a8a227e264e4086696c38bceaa22a8ac (diff)
Bugfix for particle adding + mirror crash.
Diffstat (limited to 'source/blender/src')
-rw-r--r--source/blender/src/editparticle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/editparticle.c b/source/blender/src/editparticle.c
index 411a45d0a53..a2823a0855b 100644
--- a/source/blender/src/editparticle.c
+++ b/source/blender/src/editparticle.c
@@ -600,11 +600,11 @@ static void PE_mirror_particle(Object *ob, DerivedMesh *dm, ParticleSystem *psys
edit= psys->edit;
i= pa - psys->particles;
- if(!edit->mirror_cache)
- PE_update_mirror_cache(ob, psys);
-
/* find mirrored particle if needed */
if(!mpa) {
+ if(!edit->mirror_cache)
+ PE_update_mirror_cache(ob, psys);
+
mi= edit->mirror_cache[i];
if(mi == -1)
return;