diff --git a/ogre_mesh_viewer.py b/ogre_mesh_viewer.py index 397940b..4505eb8 100755 --- a/ogre_mesh_viewer.py +++ b/ogre_mesh_viewer.py @@ -618,6 +618,8 @@ def _save_screenshot(self): Ogre.LogManager.getSingleton().logMessage(f"Screenshot saved to folder: {os.path.normpath(self.filedir)}") self.cam.getViewport().setOverlaysEnabled(False) + # We need two to really hide the Overlay (ImGUI) + self.getRoot().renderOneFrame() self.getRoot().renderOneFrame() self.getRenderWindow().writeContentsToTimestampedFile(outpath, ".png") self.cam.getViewport().setOverlaysEnabled(True)