mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 02:35:06 +08:00
chore: hopefully fixing CI issues
This commit is contained in:
parent
9609328cf0
commit
c10a2de7de
@ -1,6 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using nadena.dev.modular_avatar.core.editor;
|
||||
using nadena.dev.modular_avatar.editor.ErrorReporting;
|
||||
using NUnit.Framework;
|
||||
using UnityEditor;
|
||||
using UnityEditor.Animations;
|
||||
@ -17,6 +18,7 @@ namespace modular_avatar_tests
|
||||
[SetUp]
|
||||
public virtual void Setup()
|
||||
{
|
||||
BuildReport.Clear();
|
||||
objects = new List<GameObject>();
|
||||
}
|
||||
|
||||
|
@ -23,6 +23,8 @@ namespace nadena.dev.modular_avatar.editor.ErrorReporting
|
||||
|
||||
public static void MaybeOpenErrorReportUI()
|
||||
{
|
||||
if (Application.isBatchMode) return; // headless unit tests
|
||||
|
||||
if (BuildReport.CurrentReport.Avatars.Any(av => av.logs.Count > 0))
|
||||
{
|
||||
OpenErrorReportUI();
|
||||
|
Loading…
Reference in New Issue
Block a user