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>2010-03-12 19:21:39 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-03-12 19:21:39 +0300
commit173c1c170f747caeb98463f41d9c24ab09707d1a (patch)
treebc9c0cddaa370be1f6d37e5304e36969b0ce9a6d /source/blender/editors/physics/particle_edit.c
parentf21cab3ed54f906b16a21ed0feb39be262309b19 (diff)
Fix #21066: particle hair X mirror doesn't work.
Diffstat (limited to 'source/blender/editors/physics/particle_edit.c')
-rw-r--r--source/blender/editors/physics/particle_edit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c
index 9fc9131ffb2..744ef285179 100644
--- a/source/blender/editors/physics/particle_edit.c
+++ b/source/blender/editors/physics/particle_edit.c
@@ -831,9 +831,12 @@ static void PE_apply_mirror(Object *ob, ParticleSystem *psys)
edit= psys->edit;
psmd= psys_get_modifier(ob, psys);
- if(!edit->mirror_cache || !psmd->dm)
+ if(!psmd->dm)
return;
+ if(!edit->mirror_cache)
+ PE_update_mirror_cache(ob, psys);
+
/* we delay settings the PARS_EDIT_RECALC for mirrored particles
* to avoid doing mirror twice */
LOOP_POINTS {