*/
QSGParticlePainter::QSGParticlePainter(QSGItem *parent) :
QSGItem(parent),
- m_system(0), m_count(0), m_sentinel(new QSGParticleData(0))
+ m_system(0), m_count(0), m_sentinel(new QSGParticleData(0)), m_pleaseReset(true)
{
}
{
if (!m_system && qobject_cast<QSGParticleSystem*>(parentItem()))
setSystem(qobject_cast<QSGParticleSystem*>(parentItem()));
- if (!m_system)
- qWarning() << "ParticlePainter created without a particle system specified";//TODO: useful QML warnings, like line number?
QSGItem::componentComplete();
}
QSGParticleSystem* m_system;
friend class QSGParticleSystem;
int m_count;
- bool m_pleaseReset;
+ bool m_pleaseReset;//Used by subclasses, but it's a nice optimization to know when stuff isn't going to matter.
QStringList m_groups;
QPointF m_systemOffset;