aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-01-15 14:20:17 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2016-01-15 14:20:17 +0100
commit532634bb299dfaa8ac0900fc247ec74e13e70888 (patch)
tree94d8d42bcca430ffbbc72d6452e7e8239894b1df
parentc95dd74744eefc3f8d5077d70c922994c9fe48dd (diff)
Scatterplot: simplified material updates on glyphs.
-rw-r--r--scatterplot.cpp2
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);
}