diff options
Diffstat (limited to 'src/declarative/particles/qsgwander.cpp')
-rw-r--r-- | src/declarative/particles/qsgwander.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/declarative/particles/qsgwander.cpp b/src/declarative/particles/qsgwander.cpp index 6e56d6a05b..26bea4ee04 100644 --- a/src/declarative/particles/qsgwander.cpp +++ b/src/declarative/particles/qsgwander.cpp @@ -116,10 +116,10 @@ bool QSGWanderAffector::affectParticle(QSGParticleData* data, qreal dt) case Position: newX = data->curX() + dx; if(m_xVariance > qAbs(newX) ) - data->pv.x += dx; + data->x += dx; newY = data->curY() + dy; if(m_yVariance > qAbs(newY) ) - data->pv.y += dy; + data->y += dy; break; default: case Velocity: @@ -131,10 +131,10 @@ bool QSGWanderAffector::affectParticle(QSGParticleData* data, qreal dt) data->setInstantaneousSY(newY); break; case Acceleration: - newX = data->pv.ax + dx; + newX = data->ax + dx; if(m_xVariance > qAbs(newX) ) data->setInstantaneousAX(newX); - newY = data->pv.ay + dy; + newY = data->ay + dy; if(m_yVariance > qAbs(newY) ) data->setInstantaneousAY(newY); break; |