From 4e462a3cf77ee6422295c95e22dde3af218fc701 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 20 May 2024 12:47:09 +0500 Subject: [PATCH] use .alert in fatal loading error UI to draw more attention (3320acc) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://i.imgur.com/5ZukO0b.png we probably will need to use 1 method for both error UIs at some point 😅 --- src/blenderbim/blenderbim/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/blenderbim/blenderbim/__init__.py b/src/blenderbim/blenderbim/__init__.py index 6499fa3961..cd4381b948 100644 --- a/src/blenderbim/blenderbim/__init__.py +++ b/src/blenderbim/blenderbim/__init__.py @@ -123,6 +123,7 @@ if sys.modules.get("bpy", None): info = get_debug_info() layout = self.layout + layout.alert = True layout.label(text="BlenderBIM could not load.", icon="ERROR") if info["os"] == "Windows": layout.operator("wm.console_toggle", text="View the console for full logs.", icon="CONSOLE")