forked from bartvdbraak/blender
Fix for: [#18027] Strange behaviour of Explode modifier in combination with SubSurf
- Explode didn't use the dmcache index for getting the particles emitter position. - One "tri or quad"-comparison tested the wrong index. Leading to one quad converting into a tri.
This commit is contained in:
parent
7e23b7dc54
commit
a127f259da
@ -7193,7 +7193,7 @@ static DerivedMesh * explodeModifier_explodeMesh(ExplodeModifierData *emd,
|
||||
pa= pars+i;
|
||||
|
||||
/* get particle state */
|
||||
psys_particle_on_emitter(psmd,part->from,pa->num,-1,pa->fuv,pa->foffset,loc0,nor,0,0,0,0);
|
||||
psys_particle_on_emitter(psmd,part->from,pa->num,pa->num_dmcache,pa->fuv,pa->foffset,loc0,nor,0,0,0,0);
|
||||
Mat4MulVecfl(ob->obmat,loc0);
|
||||
|
||||
state.time=cfra;
|
||||
@ -7249,7 +7249,7 @@ static DerivedMesh * explodeModifier_explodeMesh(ExplodeModifierData *emd,
|
||||
|
||||
*mf = source;
|
||||
|
||||
test_index_face(mf, &explode->faceData, i, (mf->v4 ? 4 : 3));
|
||||
test_index_face(mf, &explode->faceData, i, (orig_v4 ? 4 : 3));
|
||||
}
|
||||
|
||||
MEM_printmemlist_stats();
|
||||
|
Loading…
Reference in New Issue
Block a user