Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 630 vs 631 for /trunk/Source Code/Dynamics/Entities/Particles/ConcreteGenerators/ParticleBoxGenerator.cpp

Diff revisions: vs.
  @@ -5,15 +5,15 @@
5 5
6 6 void ParticleBoxGenerator::generate(vectorImpl<std::future<void>>& packagedTasks,
7 7 const U64 deltaTime,
8 - std::shared_ptr<ParticleData> p,
8 + ParticleData& p,
9 9 U32 startIndex,
10 10 U32 endIndex) {
11 11 vec3<F32> min(_posMin + _sourcePosition);
12 12 vec3<F32> max(_posMax + _sourcePosition);
13 13
14 - typedef decltype(std::begin(p->_position)) iter_t;
15 - for_each_interval<iter_t>(std::begin(p->_position) + startIndex,
16 - std::begin(p->_position) + endIndex,
14 + typedef decltype(std::begin(p._position)) iter_t;
15 + for_each_interval<iter_t>(std::begin(p._position) + startIndex,
16 + std::begin(p._position) + endIndex,
17 17 ParticleData::g_threadPartitionSize,
18 18 [&](iter_t from, iter_t to)
19 19 {