Mercurial > fife-parpg
comparison tools/editor/scripts/editor.py @ 668:e8a799239384
* This fixes the case were the engine would clear the screen twice
The editor and demos now suffer from a problem where if a map is not loaded the screen doesnt get cleared and you see traces of the UI from previous frames. For now the editor, RPG demo and Shooter force the engine to clear the screen every frame. This is not ideal as once a map is loaded they will be clearing the screen twice per frame.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 08 Nov 2010 20:37:31 +0000 |
parents | 5e04f6349894 |
children | 46258f467c8c |
comparison
equal
deleted
inserted
replaced
667:a5809f60d548 | 668:e8a799239384 |
---|---|
102 self._help_dialog = None | 102 self._help_dialog = None |
103 | 103 |
104 ApplicationBase.__init__(self, TDS, *args, **kwargs) | 104 ApplicationBase.__init__(self, TDS, *args, **kwargs) |
105 MainWindow.__init__(self, *args, **kwargs) | 105 MainWindow.__init__(self, *args, **kwargs) |
106 | 106 |
107 self.engine.getRenderBackend().setClearBackBuffer(True) | |
108 | |
107 def _initTools(self): | 109 def _initTools(self): |
108 """ Initializes tools """ | 110 """ Initializes tools """ |
109 self._pluginmanager = plugin.PluginManager(self.getSettings()) | 111 self._pluginmanager = plugin.PluginManager(self.getSettings()) |
110 | 112 |
111 self._filemanager = FileManager() | 113 self._filemanager = FileManager() |