Initialize new particle data members
authorAlan Alpert <alan.alpert@nokia.com>
Mon, 10 Oct 2011 08:30:41 +0000 (18:30 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 11 Oct 2011 04:42:53 +0000 (06:42 +0200)
Change-Id: I1ba5aac70e662d64f9007a18465f520c8912ecf6
Reviewed-on: http://codereview.qt-project.org/6309
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/particles/qsgparticlesystem.cpp

index 643781b..70e4cf7 100644 (file)
@@ -415,6 +415,10 @@ QSGParticleData::QSGParticleData(QSGParticleSystem* sys)
     frameDuration = 1;
     frameCount = 1;
     animT = -1;
+    animX = 0;
+    animY = 0;
+    animWidth = 1;
+    animHeight = 1;
     color.r = 255;
     color.g = 255;
     color.b = 255;
@@ -447,6 +451,10 @@ void QSGParticleData::clone(const QSGParticleData& other)
     frameDuration = other.frameDuration;
     frameCount = other.frameCount;
     animT = other.animT;
+    animX = other.animX;
+    animY = other.animY;
+    animWidth = other.animWidth;
+    animHeight = other.animHeight;
     color.r = other.color.r;
     color.g = other.color.g;
     color.b = other.color.b;