Commit 0a566946 authored by BRAMAS Berenger's avatar BRAMAS Berenger
Browse files

update again the default particle position for padding

parent 3fa19de3
...@@ -131,7 +131,7 @@ protected: ...@@ -131,7 +131,7 @@ protected:
memcpy(newData + (allocatedParticles * idx), positions[idx], sizeof(FReal) * nbParticles); memcpy(newData + (allocatedParticles * idx), positions[idx], sizeof(FReal) * nbParticles);
positions[idx] = newData + (allocatedParticles * idx); positions[idx] = newData + (allocatedParticles * idx);
for(FSize idxEmpty = nbParticles ; idxEmpty < allocatedParticles ; ++idxEmpty){ for(FSize idxEmpty = nbParticles ; idxEmpty < allocatedParticles ; ++idxEmpty){
positions[idx][idxEmpty] = std::numeric_limits<FReal>::infinity(); positions[idx][idxEmpty] = std::numeric_limits<FReal>::max()/2;
} }
} }
// copy attributes // copy attributes
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment