aboutsummaryrefslogtreecommitdiffstats
path: root/src/particles
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@digia.com>2013-08-01 13:34:48 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-02 12:37:50 +0200
commitda1f3b9ff318663fa575daa15ca3a373eb44e129 (patch)
tree8ba261b7d60e28bd4bfa38b1f3f75e9ff94ec920 /src/particles
parent41d813908a6d178ce15baba32cedef383fa65a51 (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.cpp5
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);
}