diff --git a/blender_cloud/texture_browser.py b/blender_cloud/texture_browser.py index b99cd0c..9a85f9b 100644 --- a/blender_cloud/texture_browser.py +++ b/blender_cloud/texture_browser.py @@ -553,6 +553,7 @@ class BlenderCloudBrowser(pillar.PillarOperatorMixin, """Draws the GUI with OpenGL.""" drawers = { + 'INITIALIZING': self._draw_initializing, 'CHECKING_CREDENTIALS': self._draw_checking_credentials, 'BROWSING': self._draw_browser, 'DOWNLOADING_TEXTURE': self._draw_downloading, @@ -653,6 +654,13 @@ class BlenderCloudBrowser(pillar.PillarOperatorMixin, 'Checking login credentials', (0.0, 0.0, 0.2, 0.6)) + def _draw_initializing(self, context): + """OpenGL drawing code for the INITIALIZING state.""" + + self._draw_text_on_colour(context, + 'Initializing', + (0.0, 0.0, 0.2, 0.6)) + def _draw_text_on_colour(self, context, text, bgcolour): content_height, content_width = self._window_size(context) bgl.glEnable(bgl.GL_BLEND)