[CELayoutEditorII] White bg upon startup

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

IrmatDen
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Sat Feb 26, 2011 08:04

[CELayoutEditorII] White bg upon startup

Postby IrmatDen » Mon Mar 07, 2011 15:58

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().

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: [CELayoutEditorII] White bg upon startup

Postby Kulik » Mon Mar 07, 2011 16:07

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.

IrmatDen
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Sat Feb 26, 2011 08:04

Re: [CELayoutEditorII] White bg upon startup

Postby IrmatDen » Mon Mar 07, 2011 16:14

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()
 

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: [CELayoutEditorII] White bg upon startup

Postby Kulik » Fri Mar 11, 2011 18:17

Sorry it took so long, I applied your patch today :-)

IrmatDen
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Sat Feb 26, 2011 08:04

Re: [CELayoutEditorII] White bg upon startup

Postby IrmatDen » Sat Mar 12, 2011 00:58

No worries, glad I could help :)


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 7 guests