Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HighPy: consider ogre.cfg settings #3234

Merged
merged 1 commit into from
Sep 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
HighPy: consider ogre.cfg settings
paroj committed Sep 22, 2024
commit 3ef466e0cb2b99dc21ed2409a85ea852cca47066
3 changes: 2 additions & 1 deletion Components/Python/HighPy.py
Original file line number Diff line number Diff line change
@@ -87,9 +87,10 @@ def createRoot(self):
rgm.addResourceLocation(loc, "FileSystem", Ogre.RGN_DEFAULT)

def oneTimeConfig(self):
self.getRoot().restoreConfig()
rs = self.getRoot().getRenderSystemByName("OpenGL 3+ Rendering Subsystem")
#rs.setConfigOption("Debug Layer", "On")
self.getRoot().setRenderSystem(rs)
self.getRoot().saveConfig()
return True

def _create_image_background(scn_mgr, name):