From 332b870bd8f0fba6f09e539376a674d7a4413631 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 19 Sep 2013 09:10:42 +0200 Subject: Convert putIndexed() Change-Id: I7d02b0fdf45079d0f7afcfb6d3158dd60cb09f33 Reviewed-by: Simon Hausmann --- src/particles/qquickcustomaffector.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/particles/qquickcustomaffector.cpp') 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 array(scope, v4->newArrayObject(toAffect.size())); + QV4::ScopedValue v(scope); for (int i=0; iputIndexed(i, toAffect[i]->v4Value().toValue()); + array->putIndexed(i, (v = toAffect[i]->v4Value().toValue())); if (dt >= simulationCutoff || dt <= simulationDelta) { affectProperties(toAffect, dt); -- cgit v1.2.3