aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/particles/qsgparticlesystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/particles/qsgparticlesystem.cpp')
-rw-r--r--src/declarative/particles/qsgparticlesystem.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/declarative/particles/qsgparticlesystem.cpp b/src/declarative/particles/qsgparticlesystem.cpp
index f48156315c..efd6c22bd9 100644
--- a/src/declarative/particles/qsgparticlesystem.cpp
+++ b/src/declarative/particles/qsgparticlesystem.cpp
@@ -57,7 +57,6 @@ QT_BEGIN_NAMESPACE
/*!
\qmlclass ParticleSystem QSGParticleSystem
\inqmlmodule QtQuick.Particles 2
- \since QtQuick.Particles 2.0
\brief The ParticleSystem brings together ParticlePainter, Emitter and Affector elements.
*/
@@ -478,7 +477,7 @@ float QSGParticleData::curSize()
{
if (!system || !lifeSpan)
return 0.0f;
- return size + (endSize - size) * (lifeLeft() / lifeSpan);
+ return size + (endSize - size) * (1 - (lifeLeft() / lifeSpan));
}
float QSGParticleData::lifeLeft()