avoid flickering in visualizer window, when doing pybullet.getCameraImage

This commit is contained in:
erwincoumans
2017-08-29 12:13:21 -07:00
parent 3b472e4b12
commit 4ff6befc6d

View File

@@ -1148,6 +1148,15 @@ void OpenGLGuiHelper::copyCameraImageData(const float viewMatrix[16], const floa
} }
} }
} }
if (1)
{
getRenderInterface()->getActiveCamera()->disableVRCamera();
DrawGridData dg;
dg.upAxis = m_data->m_glApp->getUpAxis();
getRenderInterface()->updateCamera(dg.upAxis);
m_data->m_glApp->m_window->startRendering();
}
} }
if (pixelsRGBA) if (pixelsRGBA)
{ {