src/vertexmap.h

changeset 338
719b909a7d2b
parent 333
07e65a4c6611
--- a/src/vertexmap.h	Wed Jul 20 21:35:55 2022 +0300
+++ b/src/vertexmap.h	Wed Jul 20 21:48:46 2022 +0300
@@ -19,13 +19,13 @@
 		glm::mat4 transform;
 	};
 	using ApplyFunction = std::function<void(const glm::vec3&, const VertexInfo&)>;
-	VertexMap(const Model *model);
+	VertexMap(const QTextDocument *model);
 	Q_SLOT void build();
 	void apply(ApplyFunction fn) const;
 Q_SIGNALS:
 	Q_SIGNAL void verticesChanged();
 private:
-	const Model* const model;
+	const QTextDocument* const model;
 	QSet<hash_t> vertexHashes;
 	std::vector<glm::vec3> vertices;
 	std::map<hash_t, VertexInfo> map;

mercurial