Skip to content

Commit

Permalink
fixing unit test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunderscore committed Sep 3, 2023
1 parent 26ab00a commit 6c0753c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Editor/Animation/AnimatorCombiner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ Dictionary<Object, Object> cloneMap

cloneMap[original] = obj;

if (isSaved)
if (isSaved && _combined != null && EditorUtility.IsPersistent(_combined))
{
AssetDatabase.AddObjectToAsset(obj, _combined);
}
Expand Down
2 changes: 1 addition & 1 deletion UnitTests~/TestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public virtual void Setup()
if (_scriptToDirectory == null)
{
_scriptToDirectory = new Dictionary<System.Type, string>();
foreach (var guid in AssetDatabase.FindAssets("t:MonoScript", new string[] { "Assets/UnitTests" }))
foreach (var guid in AssetDatabase.FindAssets("t:MonoScript", new string[] { "Packages/nadena.dev.ndmf/UnitTests" }))
{
var path = AssetDatabase.GUIDToAssetPath(guid);
var obj = AssetDatabase.LoadAssetAtPath<MonoScript>(path);
Expand Down

0 comments on commit 6c0753c

Please sign in to comment.