ParticleSystem:setSizes no longer resets size variation to 0 (issue #640)

This commit is contained in:
Alex Szpakowski
2013-07-09 07:38:44 -03:00
parent ebd0896907
commit da7bc06976
3 changed files with 8 additions and 10 deletions
+4 -5
View File
@@ -326,16 +326,15 @@ public:
void setSize(float size);
/**
* Sets the size of the sprite upon creation and upon death (1.0 being the default size) and any variation.
* Sets the sizes of the sprite upon creation and upon death (1.0 being the default size).
* @param newSizes Array of sizes
* @param variation The amount of variation on the starting size (0 being no variation and 1.0 a random size between start and end).
**/
void setSize(const std::vector<float> &newSizes, float variation = 0.0f);
void setSizes(const std::vector<float> &newSizes);
/**
* Returns the size of the particle sprites.
* Returns the sizes of the particle sprites.
**/
const std::vector<float> &getSize() const;
const std::vector<float> &getSizes() const;
/**
* Sets the amount of variation to the sprite's beginning size (0 being no variation and 1.0 a random size between start and end).