Thu, 23 Feb 2017 22:55:09 +0200
Removed GLRenderer::refresh(), update() does the job just as fine.
src/canvas.cpp | file | annotate | diff | comparison | revisions | |
src/glrenderer.cpp | file | annotate | diff | comparison | revisions | |
src/glrenderer.h | file | annotate | diff | comparison | revisions | |
src/toolsets/viewtoolset.cpp | file | annotate | diff | comparison | revisions |
--- a/src/canvas.cpp Thu Feb 23 22:52:45 2017 +0200 +++ b/src/canvas.cpp Thu Feb 23 22:55:09 2017 +0200 @@ -135,7 +135,7 @@ reference->setFileInfo (m_documents->getDocumentByName(primitiveName)); currentDocument()->addToSelection(reference); m_window->buildObjectList(); - refresh(); + update(); event->acceptProposedAction(); } }
--- a/src/glrenderer.cpp Thu Feb 23 22:52:45 2017 +0200 +++ b/src/glrenderer.cpp Thu Feb 23 22:55:09 2017 +0200 @@ -338,16 +338,6 @@ // ============================================================================= // -void GLRenderer::refresh() -{ - update(); - - if (isVisible()) - swapBuffers(); -} - -// ============================================================================= -// void GLRenderer::resizeGL (int width, int height) { calcCameraIcons();
--- a/src/glrenderer.h Thu Feb 23 22:52:45 2017 +0200 +++ b/src/glrenderer.h Thu Feb 23 22:55:09 2017 +0200 @@ -95,7 +95,6 @@ LDObject* objectAtCursor() const; QSet<LDObject*> pick(const QRect& range); LDObject* pick(int mouseX, int mouseY); - void refresh(); void resetAllAngles(); void resetAngles(); void setBackground();
--- a/src/toolsets/viewtoolset.cpp Thu Feb 23 22:52:45 2017 +0200 +++ b/src/toolsets/viewtoolset.cpp Thu Feb 23 22:55:09 2017 +0200 @@ -155,13 +155,13 @@ void ViewToolset::wireframe() { m_config->toggleDrawWireframe(); - m_window->renderer()->refresh(); + m_window->renderer()->update(); } void ViewToolset::drawAngles() { m_config->toggleDrawAngles(); - m_window->renderer()->refresh(); + m_window->renderer()->update(); } void ViewToolset::setDrawDepth() @@ -235,7 +235,7 @@ m_config->setRandomColors (false); m_window->updateActions(); - m_window->renderer()->refresh(); + m_window->renderer()->update(); } void ViewToolset::jumpTo() @@ -265,7 +265,7 @@ m_config->setBfcRedGreenView (false); m_window->updateActions(); - m_window->renderer()->refresh(); + m_window->renderer()->update(); } void ViewToolset::drawSurfaces()