diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-03-12 19:21:39 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-03-12 19:21:39 +0300 |
commit | 173c1c170f747caeb98463f41d9c24ab09707d1a (patch) | |
tree | bc9c0cddaa370be1f6d37e5304e36969b0ce9a6d /source/blender/editors | |
parent | f21cab3ed54f906b16a21ed0feb39be262309b19 (diff) |
Fix #21066: particle hair X mirror doesn't work.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/physics/particle_edit.c | 5 |
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 { |