diff options
-rw-r--r-- | scatterplot.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/scatterplot.cpp b/scatterplot.cpp index 0de06a3..de96e6f 100644 --- a/scatterplot.cpp +++ b/scatterplot.cpp @@ -360,12 +360,10 @@ void Scatterplot::updateGlyphs(QSGNode *glyphsNode) if (m_shouldUpdateMaterials) { QSGFlatColorMaterial *material = static_cast<QSGFlatColorMaterial *>(glyphOutlineNode->material()); material->setColor(isSelected ? GLYPH_OUTLINE_COLOR_SELECTED : GLYPH_OUTLINE_COLOR); - glyphOutlineNode->setMaterial(material); glyphOutlineNode->markDirty(QSGNode::DirtyMaterial); material = static_cast<QSGFlatColorMaterial *>(glyphNode->material()); material->setColor(m_colorScale->color(m_colorData[i])); - glyphNode->setMaterial(material); glyphNode->markDirty(QSGNode::DirtyMaterial); } |