diff options
Diffstat (limited to 'src/particles/qquickparticleemitter.cpp')
-rw-r--r-- | src/particles/qquickparticleemitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/particles/qquickparticleemitter.cpp b/src/particles/qquickparticleemitter.cpp index 404554c9b6..d42c92304b 100644 --- a/src/particles/qquickparticleemitter.cpp +++ b/src/particles/qquickparticleemitter.cpp @@ -486,8 +486,9 @@ void QQuickParticleEmitter::emitWindow(int timeStamp) //Done after emitParticle so that the Painter::load is done first, this allows you to customize its static variables //We then don't need to request another reload, because the first reload isn't scheduled until we get back to the render thread QV4::Scoped<QV4::ArrayObject> array(scope, v4->newArrayObject(toEmit.size())); + QV4::ScopedValue v(scope); for (int i=0; i<toEmit.size(); i++) - array->putIndexed(i, toEmit[i]->v4Value().toValue()); + array->putIndexed(i, (v = toEmit[i]->v4Value().toValue())); emitParticles(QQmlV4Handle(array.asValue()));//A chance for arbitrary JS changes } |