From: Alan Alpert Date: Mon, 10 Oct 2011 08:30:41 +0000 (+1000) Subject: Initialize new particle data members X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=991c3ec5a3eb2ef2a0a8e52d066995d5470f7447;p=konrad%2Fqtdeclarative.git Initialize new particle data members Change-Id: I1ba5aac70e662d64f9007a18465f520c8912ecf6 Reviewed-on: http://codereview.qt-project.org/6309 Sanity-Review: Qt Sanity Bot Reviewed-by: Martin Jones --- diff --git a/src/declarative/particles/qsgparticlesystem.cpp b/src/declarative/particles/qsgparticlesystem.cpp index 643781b..70e4cf7 100644 --- a/src/declarative/particles/qsgparticlesystem.cpp +++ b/src/declarative/particles/qsgparticlesystem.cpp @@ -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;