diff options
author | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-08-01 13:34:48 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-02 12:37:50 +0200 |
commit | da1f3b9ff318663fa575daa15ca3a373eb44e129 (patch) | |
tree | 8ba261b7d60e28bd4bfa38b1f3f75e9ff94ec920 /src/particles | |
parent | 41d813908a6d178ce15baba32cedef383fa65a51 (diff) |
Remove redundant calls...
Geometry ownership only matters when the node is or the entire
geometry object is replaced. Accessing the bits in it can be
done without any issues.
Change-Id: I6da636bc5cdbda03039e00922e599932f4117d1a
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'src/particles')
-rw-r--r-- | src/particles/qquickimageparticle.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/particles/qquickimageparticle.cpp b/src/particles/qquickimageparticle.cpp index 0145ce4edb..5c1aee7c93 100644 --- a/src/particles/qquickimageparticle.cpp +++ b/src/particles/qquickimageparticle.cpp @@ -1677,7 +1677,6 @@ void QQuickImageParticle::spritesUpdate(qreal time) if (frameAt < (datum->frameCount-1)) x2 += w; - node->setFlag(QSGNode::OwnsGeometry, false); SpriteVertex *spriteVertices = (SpriteVertex *) node->geometry()->vertexData(); spriteVertices += datum->index*4; for (int i=0; i<4; i++) { @@ -1689,7 +1688,6 @@ void QQuickImageParticle::spritesUpdate(qreal time) spriteVertices[i].animH = h; spriteVertices[i].animProgress = progress; } - node->setFlag(QSGNode::OwnsGeometry, true); } } } @@ -1853,7 +1851,6 @@ void QQuickImageParticle::commit(int gIdx, int pIdx) if (!node) return; QQuickParticleData* datum = m_system->groupData[gIdx]->data[pIdx]; - node->setFlag(QSGNode::OwnsGeometry, false); SpriteVertex *spriteVertices = (SpriteVertex *) node->geometry()->vertexData(); DeformableVertex *deformableVertices = (DeformableVertex *) node->geometry()->vertexData(); ColoredVertex *coloredVertices = (ColoredVertex *) node->geometry()->vertexData(); @@ -2004,8 +2001,6 @@ void QQuickImageParticle::commit(int gIdx, int pIdx) default: break; } - - node->setFlag(QSGNode::OwnsGeometry, true); } |