From b48555e2e0be1571e54ecb4488ee3a5b5c707290 Mon Sep 17 00:00:00 2001 From: bd_ Date: Wed, 15 Nov 2023 21:07:48 +0900 Subject: [PATCH] fix: error report not displayed upon failure (#532) --- Editor/PluginDefinition/ModularAvatarContext.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Editor/PluginDefinition/ModularAvatarContext.cs b/Editor/PluginDefinition/ModularAvatarContext.cs index 3e7a3c66..237e3896 100644 --- a/Editor/PluginDefinition/ModularAvatarContext.cs +++ b/Editor/PluginDefinition/ModularAvatarContext.cs @@ -25,6 +25,13 @@ namespace nadena.dev.modular_avatar.core.editor { toDispose?.Dispose(); toDispose = null; + + if (BuildReport.CurrentReport?.CurrentAvatar?.successful == false) + { + // This is a bit of a temporary hack until we have a better way to report errors via NDMF + ErrorReportUI.OpenErrorReportUI(); + throw new Exception("Errors occurred during modular avatar processing"); + } } catch (Exception e) {