From: Alan Alpert Date: Mon, 29 Aug 2011 08:49:24 +0000 (+1000) Subject: setting only colorVariation now works X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=8b38efd412c8b340a4c078b5f2012c0da26f17ac;p=konrad%2Fqtdeclarative.git setting only colorVariation now works Wasn't realizing it needed colored shaders for it. Change-Id: I9d5693d8f8f470d3239339d4457c576f5b40fe3f Reviewed-on: http://codereview.qt.nokia.com/3723 Reviewed-by: Qt Sanity Bot Reviewed-by: Martin Jones --- diff --git a/src/declarative/particles/qsgimageparticle.cpp b/src/declarative/particles/qsgimageparticle.cpp index a12d1c2..f3bf2f0 100644 --- a/src/declarative/particles/qsgimageparticle.cpp +++ b/src/declarative/particles/qsgimageparticle.cpp @@ -864,7 +864,7 @@ QSGGeometryNode* QSGImageParticle::buildParticleNodes() } else if (m_autoRotation || m_rotation || m_rotationVariation || m_rotationSpeed || m_rotationSpeedVariation) { perfLevel = Deformable; - } else if (m_alphaVariation || m_alpha != 1.0 || m_color.isValid() + } else if (m_alphaVariation || m_alpha != 1.0 || m_color.isValid() || m_color_variation || m_redVariation || m_blueVariation || m_greenVariation) { perfLevel = Colored; } else {