From bb8b7565cd4c6fd010ed2c04d6e762afab75a369 Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Sun, 22 Sep 2024 13:47:19 +0200 Subject: [PATCH] HighPy: consider ogre.cfg settings --- Components/Python/HighPy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Components/Python/HighPy.py b/Components/Python/HighPy.py index 061b45e12e6..11436256543 100644 --- a/Components/Python/HighPy.py +++ b/Components/Python/HighPy.py @@ -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):