Page 1 of 1

[CELayoutEditorII] White bg upon startup

Posted: Mon Mar 07, 2011 15:58
by IrmatDen
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().

Re: [CELayoutEditorII] White bg upon startup

Posted: Mon Mar 07, 2011 16:07
by Kulik
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.

Re: [CELayoutEditorII] White bg upon startup

Posted: Mon Mar 07, 2011 16:14
by IrmatDen
Sure thing :)

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

Posted: Fri Mar 11, 2011 18:17
by Kulik
Sorry it took so long, I applied your patch today :-)

Re: [CELayoutEditorII] White bg upon startup

Posted: Sat Mar 12, 2011 00:58
by IrmatDen
No worries, glad I could help :)