mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55: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.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using nadena.dev.modular_avatar.core.editor;
|
using nadena.dev.modular_avatar.core.editor;
|
||||||
|
using nadena.dev.modular_avatar.editor.ErrorReporting;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
using UnityEditor.Animations;
|
using UnityEditor.Animations;
|
||||||
@ -17,6 +18,7 @@ namespace modular_avatar_tests
|
|||||||
[SetUp]
|
[SetUp]
|
||||||
public virtual void Setup()
|
public virtual void Setup()
|
||||||
{
|
{
|
||||||
|
BuildReport.Clear();
|
||||||
objects = new List<GameObject>();
|
objects = new List<GameObject>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,6 +23,8 @@ namespace nadena.dev.modular_avatar.editor.ErrorReporting
|
|||||||
|
|
||||||
public static void MaybeOpenErrorReportUI()
|
public static void MaybeOpenErrorReportUI()
|
||||||
{
|
{
|
||||||
|
if (Application.isBatchMode) return; // headless unit tests
|
||||||
|
|
||||||
if (BuildReport.CurrentReport.Avatars.Any(av => av.logs.Count > 0))
|
if (BuildReport.CurrentReport.Avatars.Any(av => av.logs.Count > 0))
|
||||||
{
|
{
|
||||||
OpenErrorReportUI();
|
OpenErrorReportUI();
|
||||||
|
Loading…
Reference in New Issue
Block a user