src/vertexmap.cpp

changeset 333
07e65a4c6611
parent 309
d862721d19a3
child 338
719b909a7d2b
--- 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();
 }
 

mercurial