From 6b51a50fd16b3cf78519f76d62947e5aa2baa8b4 Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Tue, 7 May 2024 23:13:34 +0200 Subject: [PATCH] do not swap buffers for screenshot --- ogre_mesh_viewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ogre_mesh_viewer.py b/ogre_mesh_viewer.py index 8d75433..43c0a88 100755 --- a/ogre_mesh_viewer.py +++ b/ogre_mesh_viewer.py @@ -629,7 +629,7 @@ def _save_screenshot(self): Ogre.LogManager.getSingleton().logMessage(f"Screenshot saved to folder: {os.path.normpath(self.filedir)}") self.cam.getViewport().setOverlaysEnabled(False) - self.getRoot().renderOneFrame() + self.getRenderWindow().update(False) self.getRenderWindow().writeContentsToTimestampedFile(outpath, ".png") self.cam.getViewport().setOverlaysEnabled(True)