Commit d0ffc0ab authored by Emmanuel Promayon's avatar Emmanuel Promayon

FIXED refresh in QVTKOpenGLWidget

parent adc03cb4
......@@ -91,7 +91,6 @@
// Extra classes are required for VTK8
#elif VTK_MAJOR_VERSION == 8
#include <QVTKOpenGLWidget.h>
#include <vtkGenericOpenGLRenderWindow.h>
#include <QSurfaceFormat>
......@@ -793,7 +792,12 @@ void RendererWidget::screenshot(QString filename) {
//---------------------- refresh ------------------------
void RendererWidget::refresh() {
#if VTK_MAJOR_VERSION == 8
// QVTKOpenGLWidget now relies on VTK applications calling `Render` on the window when data or rendering has changed.
GetRenderWindow()->Render();
#else
update();
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment