Hi,
When launching CELayoutEditorII with a background image saved, the background is actually white due to CELayoutEditorWindow.__init__ call order: self.__restoreEditorState() is currently called before self.ceguiOutput.makeCurrent().
[CELayoutEditorII] White bg upon startup
Moderators: CEGUI MVP, CEGUI Team
Re: [CELayoutEditorII] White bg upon startup
Thanks for all the reports!
I will just put a note here that I am working on an unified CEGUI editor (http://crayzedsgui.hg.sourceforge.net/h ... sgui/CEED/), I will be integrating layouteditor inside it (long way to get to that stage though). That means that I (most likely) won't work on CELE2 anymore since I consider it obsolete.
If you supply patches against mercurial default, I will try to review and commit them though.
I will just put a note here that I am working on an unified CEGUI editor (http://crayzedsgui.hg.sourceforge.net/h ... sgui/CEED/), I will be integrating layouteditor inside it (long way to get to that stage though). That means that I (most likely) won't work on CELE2 anymore since I consider it obsolete.
If you supply patches against mercurial default, I will try to review and commit them though.
Re: [CELayoutEditorII] White bg upon startup
Sure thing
Here's the shelve file for this report (I'll post the shelves in the other messages within the next minutes):
Here's the shelve file for this report (I'll post the shelves in the other messages within the next minutes):
Code: Select all
diff --git a/layouteditor/mainwindow.py b/layouteditor/mainwindow.py
--- a/layouteditor/mainwindow.py
+++ b/layouteditor/mainwindow.py
@@ -60,10 +60,7 @@
self.__setupNewWidgetTree()
self.__setupPropertyTreeModel()
self.__setupUIEventConnections()
-
-
- self.__restoreEditorState()
# make sure the GL context is current before loading textures
self.ceguiOutput.makeCurrent()
@@ -66,7 +63,9 @@
# make sure the GL context is current before loading textures
self.ceguiOutput.makeCurrent()
+ self.__restoreEditorState()
+
self.__resourcePaths.initialiseCEGUIDefaultResourceGroups()
self.__resourcePaths.initialiseCEGUIWithPaths()
Re: [CELayoutEditorII] White bg upon startup
Sorry it took so long, I applied your patch today
Re: [CELayoutEditorII] White bg upon startup
No worries, glad I could help
Return to “Bug Reports, Suggestions, Feature Requests”
Who is online
Users browsing this forum: No registered users and 4 guests