diff -r 1f42c03fafca -r 5760cbb32bc0 src/gl/partrenderer.cpp --- a/src/gl/partrenderer.cpp Sun Jul 25 20:29:14 2021 +0300 +++ b/src/gl/partrenderer.cpp Sun Jul 25 20:39:21 2021 +0300 @@ -85,7 +85,7 @@ 0.1f, 10000.f); this->compiler->setUniformMatrix("projectionMatrix", this->projectionMatrix); - emit projectionMatrixChanged(this->projectionMatrix); + Q_EMIT projectionMatrixChanged(this->projectionMatrix); } static GLenum getGlTypeForArrayClass(const gl::ArrayClass vboClass) @@ -202,14 +202,14 @@ const double z = 2 * std::exp(this->zoom) * (1 + this->compiler->modelDistance()); this->viewMatrix = glm::lookAt(glm::vec3{0, 0, z}, {0, 0, 0}, {0, -1, 0}); this->compiler->setUniformMatrix("viewMatrix", this->viewMatrix); - emit this->viewMatrixChanged(this->viewMatrix); + Q_EMIT this->viewMatrixChanged(this->viewMatrix); } void PartRenderer::updateModelMatrix() { this->modelMatrix = glm::mat4_cast(this->modelQuaternion); this->compiler->setUniformMatrix("modelMatrix", modelMatrix); - emit this->modelMatrixChanged(this->modelMatrix); + Q_EMIT this->modelMatrixChanged(this->modelMatrix); this->update(); } @@ -383,7 +383,7 @@ this->build(); this->setupBackgroundColor(); } - emit this->renderPreferencesChanged(); + Q_EMIT this->renderPreferencesChanged(); this->update(); }