setting only colorVariation now works
authorAlan Alpert <alan.alpert@nokia.com>
Mon, 29 Aug 2011 08:49:24 +0000 (18:49 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 31 Aug 2011 08:11:56 +0000 (10:11 +0200)
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 <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>

src/declarative/particles/qsgimageparticle.cpp

index a12d1c2..f3bf2f0 100644 (file)
@@ -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 {