Skip to content

Commit

Permalink
Merge pull request #18 from amccarthy/mer1149
Browse files Browse the repository at this point in the history
[mer] Always update route node when a new scene graph node is created. Fixes MER#1149
  • Loading branch information
sletta committed Jul 2, 2015
2 parents 43e69a4 + c197fc6 commit f8207d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imports/location/qdeclarativeroutemapitem.cpp
Expand Up @@ -167,7 +167,7 @@ QSGNode *QDeclarativeRouteMapItem::updateMapItemPaintNode(QSGNode *oldNode, Upda
node = new MapPolylineNode;

//TODO: update only material
if (geometry_.isScreenDirty() || dirtyMaterial_) {
if (geometry_.isScreenDirty() || dirtyMaterial_ || !oldNode) {
geometry_.setPreserveGeometry(false);
node->update(line_.color(), &geometry_);
geometry_.markClean();
Expand Down

0 comments on commit f8207d4

Please sign in to comment.