src/gl/partrenderer.cpp

changeset 111
1f42c03fafca
parent 107
02f142b399b1
child 112
5760cbb32bc0
--- a/src/gl/partrenderer.cpp	Sun Jul 25 16:29:08 2021 +0300
+++ b/src/gl/partrenderer.cpp	Sun Jul 25 20:29:14 2021 +0300
@@ -38,6 +38,10 @@
 	compiler{new gl::Compiler{this->colorTable, this}}
 {
 	this->setMouseTracking(true);
+	connect(model, &Model::rowsInserted, [&]{
+		this->needBuild = true;
+	});
+	connect(model, &Model::rowsRemoved, [&]{ this->needBuild = true; });
 }
 
 PartRenderer::~PartRenderer()

mercurial