Fix #21066: particle hair X mirror doesn't work.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 12 Mar 2010 16:21:39 +0000 (16:21 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 12 Mar 2010 16:21:39 +0000 (16:21 +0000)
source/blender/editors/physics/particle_edit.c

index 9fc9131ffb2127cf78e49d58fa07d22e96b539fc..744ef285179a370d8d8719d697edf172942218e6 100644 (file)
@@ -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 {