Ran script to remove trailing spaces and tabs
This commit is contained in:
@@ -8,7 +8,7 @@ osgParticle::MultiSegmentPlacer::MultiSegmentPlacer()
|
||||
: Placer(), _total_length(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
osgParticle::MultiSegmentPlacer::MultiSegmentPlacer(const MultiSegmentPlacer& copy, const osg::CopyOp& copyop)
|
||||
: Placer(copy, copyop), _vx(copy._vx), _total_length(copy._total_length)
|
||||
{
|
||||
@@ -18,13 +18,13 @@ void osgParticle::MultiSegmentPlacer::recompute_length()
|
||||
{
|
||||
Vertex_vector::iterator i;
|
||||
Vertex_vector::iterator i0 = _vx.begin();
|
||||
|
||||
|
||||
_total_length = 0;
|
||||
for (i=_vx.begin(); i!=_vx.end(); ++i)
|
||||
{
|
||||
_total_length += (i->first - i0->first).length();
|
||||
i->second = _total_length;
|
||||
i0 = i;
|
||||
i0 = i;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ void osgParticle::MultiSegmentPlacer::place(Particle* P) const
|
||||
{
|
||||
if (_vx.size() >= 2) {
|
||||
float x = rangef(0, _total_length).get_random();
|
||||
|
||||
|
||||
Vertex_vector::const_iterator i;
|
||||
Vertex_vector::const_iterator i0 = _vx.begin();
|
||||
const Vertex_vector::const_iterator vend = _vx.end();
|
||||
@@ -46,7 +46,7 @@ void osgParticle::MultiSegmentPlacer::place(Particle* P) const
|
||||
return;
|
||||
}
|
||||
i0 = i;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user