Skip to content

Commit

Permalink
fix(tests): compile errors on 2018.4.26f1 (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
amirebrahimi authored Aug 25, 2020
1 parent acbe0d3 commit 91b5ad7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Tests/Editor/MeshUtilsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,11 @@ public void ShouldGetMeshUVs()
mesh.vertices = new Vector3[4];
for (int i = 0; i < uvs.Length; i++)
{
#if UNITY_2018
mesh.SetUVs(i, uvs[i].ToList());
#else
mesh.SetUVs(i, uvs[i]);
#endif
}

var allUVs = MeshUtils.GetMeshUVs(mesh);
Expand Down
9 changes: 5 additions & 4 deletions Tests/Editor/Whinarn.UnityMeshSimplifier.Editor.Tests.asmdef
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"name": "Whinarn.UnityMeshSimplifier.Editor.Tests",
"references": [
"GUID:77ccaf49895b0d64e87cd4b4faf83c49"
"Whinarn.UnityMeshSimplifier.Runtime"
],
"optionalUnityReferences": [
"TestAssemblies"
],
"includePlatforms": [
"Editor"
Expand All @@ -11,7 +14,5 @@
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
"defineConstraints": []
}

0 comments on commit 91b5ad7

Please sign in to comment.