Skip to content

Commit

Permalink
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

Change-Id: Ib89646cb804f925fedc668f845ac33cf916a7721
  • Loading branch information
Aaron McCarthy committed Jul 2, 2015
1 parent 43e69a4 commit c197fc6
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 c197fc6

Please sign in to comment.