diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2011-09-13 12:03:13 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-09-13 04:57:06 +0200 |
commit | f828bee19dee73246c09af3aad913b5540f1cbd0 (patch) | |
tree | 6ac01fb27e4ae8ffbfbbbbb3ef14c6fa80b05544 | |
parent | eb798a04c466f14af5817af6e65309c05e50c804 (diff) |
Reset on system change
Otherwise it tried to maintain its data, which is not useful when we
should just reset anyways.
Change-Id: Id7bbabed67d8549d4842c1e5e6bf87ba93508d62
Reviewed-on: http://codereview.qt-project.org/4705
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
-rw-r--r-- | src/declarative/particles/qsgparticlepainter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/particles/qsgparticlepainter.cpp b/src/declarative/particles/qsgparticlepainter.cpp index 670c1f2118..aec8690b08 100644 --- a/src/declarative/particles/qsgparticlepainter.cpp +++ b/src/declarative/particles/qsgparticlepainter.cpp @@ -95,7 +95,7 @@ void QSGParticlePainter::setSystem(QSGParticleSystem *arg) this, SLOT(calcSystemOffset())); connect(m_system, SIGNAL(yChanged()), this, SLOT(calcSystemOffset())); - calcSystemOffset(); + reset(); } emit systemChanged(arg); } |