We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2236414 commit 801dcb4Copy full SHA for 801dcb4
src/ScatterplotPlugin.cpp
@@ -603,8 +603,10 @@ void ScatterplotPlugin::loadColors(const Dataset<Clusters>& clusters)
603
{
604
for (size_t i = 0; i < static_cast<size_t>(clusterVec.size()); i++)
605
606
- const auto color = clusterVec[i].getColor();
607
- localColors[i] = Vector3f(color.redF(), color.greenF(), color.blueF());
+ const auto& cluster = clusterVec[i];
+ const auto color = cluster.getColor();
608
+
609
+ localColors[cluster.getIndices()[0]] = Vector3f(color.redF(), color.greenF(), color.blueF());
610
}
611
612
0 commit comments