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/ParticleVelocityGenerator.cpp

Diff revisions: vs.
  @@ -4,15 +4,15 @@
4 4
5 5 void ParticleVelocityGenerator::generate(vectorImpl<std::future<void>>& packagedTasks,
6 6 const U64 deltaTime,
7 - std::shared_ptr<ParticleData> p,
7 + ParticleData& p,
8 8 U32 startIndex,
9 9 U32 endIndex) {
10 10 vec3<F32> min = _sourceOrientation * _minStartVel.xyz();
11 11 vec3<F32> max = _sourceOrientation * _maxStartVel.xyz();
12 12
13 - typedef decltype(std::begin(p->_velocity)) iter_t;
14 - for_each_interval<iter_t>(std::begin(p->_velocity) + startIndex,
15 - std::begin(p->_velocity) + endIndex,
13 + typedef decltype(std::begin(p._velocity)) iter_t;
14 + for_each_interval<iter_t>(std::begin(p._velocity) + startIndex,
15 + std::begin(p._velocity) + endIndex,
16 16 ParticleData::g_threadPartitionSize,
17 17 [&](iter_t from, iter_t to)
18 18 {