Skip to content

Commit

Permalink
do not swap buffers for screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed May 7, 2024
1 parent a3001c0 commit 6b51a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ogre_mesh_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6b51a50

Please sign in to comment.