The default offset for particles in a ParticleSystem is now updated when ParticleSystem:setQuads or ParticleSystem:setTexture is used (resolves issue #998.)

This commit is contained in:
Alex Szpakowski
2015-03-04 03:57:41 -04:00
parent e2652fddc1
commit 4263de89ab
3 changed files with 32 additions and 11 deletions
+6 -2
View File
@@ -653,8 +653,10 @@ protected:
float spinVariation;
// Offsets
float offsetX;
float offsetY;
love::Vector offset;
// Is the ParticleSystem using a default offset?
bool defaultOffset;
// Color.
std::vector<Colorf> colors;
@@ -664,6 +666,8 @@ protected:
bool relativeRotation;
void resetOffset();
void createBuffers(size_t size);
void deleteBuffers();