diff -r ae7f7fbb9cda -r 07e65a4c6611 src/vertexmap.cpp --- a/src/vertexmap.cpp Mon Jul 04 15:37:22 2022 +0300 +++ b/src/vertexmap.cpp Mon Jul 04 19:53:13 2022 +0300 @@ -13,24 +13,6 @@ VertexMap::VertexMap(const Model *model) : model{model} { - connect( - model, - &Model::dataChanged, - this, - &VertexMap::build - ); - connect( - model, - &Model::rowsInserted, - this, - &VertexMap::build - ); - connect( - model, - &Model::rowsRemoved, - this, - &VertexMap::build - ); this->build(); } @@ -116,6 +98,7 @@ this->map.clear(); this->vertices.clear(); this->vertexHashes.clear(); +#if 0 for (std::size_t i = 0; i < this->model->size(); ++i) { const ModelElement& element = this->model->at(i); @@ -173,6 +156,7 @@ } info.transform = glm::scale(info.transform, glm::vec3{scale, scale, scale}); } +#endif Q_EMIT this->verticesChanged(); }