Fix T51759: fluid simulation particles not remoevd when colliding with outflow objects.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D2719
This commit is contained in:
Lucas Veber 2017-07-02 22:38:16 +02:00 committed by Brecht Van Lommel
parent 3232d8ec8f
commit 405121d613
Notes: blender-bot 2023-02-14 06:54:27 +01:00
Referenced by issue #51759, Fluid simulation. An outflow mesh doesn't remove additional fluid mesh (Generated by Fluid Particles option)
1 changed files with 4 additions and 0 deletions

View File

@ -855,6 +855,10 @@ void LbmFsgrSolver::advanceParticles() {
if(k<=mSizez-1-cutval){
CellFlagType pflag = RFLAG(level, i,j,k, workSet);
//errMsg("PIT move"," at "<<PRINT_IJK<<" flag"<<convertCellFlagType2String(pflag) );
if (pflag & CFMbndOutflow) {
DEL_PART;
continue;
}
if(pflag & (CFBnd)) {
handleObstacleParticle(p);
continue;