src/ui/canvas.cpp

changeset 214
8e1fe64ce4e3
parent 206
654661eab7f3
--- a/src/ui/canvas.cpp	Sat Jun 11 15:20:24 2022 +0300
+++ b/src/ui/canvas.cpp	Sun Jun 12 20:47:04 2022 +0300
@@ -5,7 +5,7 @@
 
 Canvas::Canvas(
 	Model* model,
-	EditorTabWidget *document,
+	EditTools *document,
 	DocumentManager* documents,
 	const ColorTable& colorTable,
 	QWidget* parent) :
@@ -33,11 +33,11 @@
  * @brief Updates vertex rendering
  * @param document Document to get vertices from
  */
-void Canvas::rebuildVertices(EditorTabWidget* document)
+void Canvas::rebuildVertices(VertexMap* vertexMap)
 {
 	if (this->vertexProgram.has_value())
 	{
-		this->vertexProgram->build(document);
+		this->vertexProgram->build(vertexMap);
 		this->update();
 	}
 }

mercurial