Replaced tabs with spaces.
This commit is contained in:
@@ -90,9 +90,9 @@ bool read_particle(osgDB::Input &fr, osgParticle::Particle &P)
|
||||
itAdvanced = true;
|
||||
}
|
||||
}
|
||||
if (fr[0].matchWord("angle")) {
|
||||
osg::Vec3 v;
|
||||
if (fr[1].getFloat(v.x()) && fr[2].getFloat(v.y()) && fr[3].getFloat(v.z())) {
|
||||
if (fr[0].matchWord("angle")) {
|
||||
osg::Vec3 v;
|
||||
if (fr[1].getFloat(v.x()) && fr[2].getFloat(v.y()) && fr[3].getFloat(v.z())) {
|
||||
P.setAngle(v);
|
||||
fr += 4;
|
||||
itAdvanced = true;
|
||||
@@ -171,7 +171,7 @@ void write_particle(const osgParticle::Particle &P, osgDB::Output &fw)
|
||||
case osgParticle::Particle::HEXAGON: fw << "HEXAGON" << std::endl; break;
|
||||
case osgParticle::Particle::QUAD_TRIANGLESTRIP: fw << "QUAD_TRIANGLESTRIP" << std::endl; break;
|
||||
case osgParticle::Particle::QUAD: fw << "QUAD" << std::endl; break;
|
||||
case osgParticle::Particle::LINE:
|
||||
case osgParticle::Particle::LINE:
|
||||
default: fw << "LINE" << std::endl; break;
|
||||
}
|
||||
|
||||
@@ -196,13 +196,13 @@ void write_particle(const osgParticle::Particle &P, osgDB::Output &fw)
|
||||
fw.indent() << "velocity ";
|
||||
fw << v.x() << " " << v.y() << " " << v.z() << std::endl;
|
||||
|
||||
v = P.getAngle();
|
||||
fw.indent() << "angle ";
|
||||
fw << v.x() << " " << v.y() << " " << v.z() << std::endl;
|
||||
v = P.getAngle();
|
||||
fw.indent() << "angle ";
|
||||
fw << v.x() << " " << v.y() << " " << v.z() << std::endl;
|
||||
|
||||
v = P.getAngularVelocity();
|
||||
fw.indent() << "angularVelocity ";
|
||||
fw << v.x() << " " << v.y() << " " << v.z() << std::endl;
|
||||
v = P.getAngularVelocity();
|
||||
fw.indent() << "angularVelocity ";
|
||||
fw << v.x() << " " << v.y() << " " << v.z() << std::endl;
|
||||
|
||||
fw.indent() << "radius " << P.getRadius() << std::endl;
|
||||
fw.indent() << "mass " << P.getMass() << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user