[#18277] Segfault crash by editing mesh with subsurf+ParticleInstance modifiers
authorCampbell Barton <ideasman42@gmail.com>
Tue, 31 Mar 2009 00:58:02 +0000 (00:58 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 31 Mar 2009 00:58:02 +0000 (00:58 +0000)
Marked as fixed but was still using uninitialized variables.

source/blender/blenkernel/intern/modifier.c

index 566a139f72c406f8f7dd61c337f640ad67a6e61c..b3892a515af70629931003f90de1ba418cb5c9fa 100644 (file)
@@ -6382,6 +6382,7 @@ static DerivedMesh * particleInstanceModifier_applyModifier(
        if(psys->flag & (PSYS_HAIR_DONE|PSYS_KEYED)){
 
                float min_r[3], max_r[3];
        if(psys->flag & (PSYS_HAIR_DONE|PSYS_KEYED)){
 
                float min_r[3], max_r[3];
+               INIT_MINMAX(min_r, max_r);
                dm->getMinMax(dm, min_r, max_r);                
                min_co=min_r[track];
                max_co=max_r[track];
                dm->getMinMax(dm, min_r, max_r);                
                min_co=min_r[track];
                max_co=max_r[track];