Commit f6f60451 authored by Marco Bubke's avatar Marco Bubke

QmlDesigner.NodeInstances: Fix frame dropping for last frame

Change-Id: Ie8c66c55f0236043441043727f31c9040a5dfc3d
Reviewed-on: http://codereview.qt.nokia.com/4008Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 3937a20f
......@@ -93,7 +93,7 @@ void Qt4RenderNodeInstanceServer::collectItemChangesAndSendChangeCommands()
bool adjustSceneRect = false;
if (declarativeView()) {
if (declarativeView() && nodeInstanceClient()->bytesToWrite() < 10000) {
foreach (QGraphicsItem *item, declarativeView()->items()) {
QGraphicsObject *graphicsObject = item->toGraphicsObject();
if (graphicsObject && hasInstanceForObject(graphicsObject)) {
......@@ -130,7 +130,7 @@ void Qt4RenderNodeInstanceServer::collectItemChangesAndSendChangeCommands()
clearChangedPropertyList();
resetAllItems();
if (!m_dirtyInstanceSet.isEmpty() && nodeInstanceClient()->bytesToWrite() < 10000) {
if (!m_dirtyInstanceSet.isEmpty() ) {
nodeInstanceClient()->pixmapChanged(createPixmapChangedCommand(m_dirtyInstanceSet.toList()));
m_dirtyInstanceSet.clear();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment