diff options
author | Lars Knoll <[email protected]> | 2013-09-19 09:10:42 +0200 |
---|---|---|
committer | The Qt Project <[email protected]> | 2013-09-22 01:06:20 +0200 |
commit | 332b870bd8f0fba6f09e539376a674d7a4413631 (patch) | |
tree | a3977c20b6331e1e6ab1d85e5e25836155797d0c /src/particles/qquickcustomaffector.cpp | |
parent | df5edd28bc4258b89d9d5ffdddf837f339a17aad (diff) |
Convert putIndexed()
Change-Id: I7d02b0fdf45079d0f7afcfb6d3158dd60cb09f33
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/particles/qquickcustomaffector.cpp')
-rw-r--r-- | src/particles/qquickcustomaffector.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/particles/qquickcustomaffector.cpp b/src/particles/qquickcustomaffector.cpp index 09f8967045..583e3b6555 100644 --- a/src/particles/qquickcustomaffector.cpp +++ b/src/particles/qquickcustomaffector.cpp @@ -148,8 +148,9 @@ void QQuickCustomAffector::affectSystem(qreal dt) QV4::Scope scope(v4); QV4::Scoped<QV4::ArrayObject> array(scope, v4->newArrayObject(toAffect.size())); + QV4::ScopedValue v(scope); for (int i=0; i<toAffect.size(); i++) - array->putIndexed(i, toAffect[i]->v4Value().toValue()); + array->putIndexed(i, (v = toAffect[i]->v4Value().toValue())); if (dt >= simulationCutoff || dt <= simulationDelta) { affectProperties(toAffect, dt); |