Skip to content

Commit

Permalink
Updated the image path used in the textured scene creation method so …
Browse files Browse the repository at this point in the history
…that it's more robust.

Revert "Set up platforms for x86 and x64."

This reverts commit 2ab2abd.

Set up platforms for x86 and x64.
  • Loading branch information
MeltyPlayer committed Jan 15, 2023
1 parent bbbce2c commit ed4450a
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.IO;
using System.Numerics;

using NUnit.Framework;
Expand Down Expand Up @@ -117,7 +118,14 @@ public void CreateSceneWithTexturedTriangle()
TestContext.CurrentContext.AttachGltfValidatorLinks();

// we'll use our icon as the source texture
var imagePath = System.IO.Path.Combine(TestContext.CurrentContext.WorkDirectory, "..\\..\\..\\..\\..\\build\\Icons\\glTF2Sharp.png");
var workDirectory = new DirectoryInfo(TestContext.CurrentContext.WorkDirectory);
var testDirectory = workDirectory;
do {
testDirectory = testDirectory.Parent;
} while (testDirectory.Name != "tests");
var sharpGltfDirectory = testDirectory.Parent;

var imagePath = Path.Combine(sharpGltfDirectory.FullName, "build\\Icons\\glTF2Sharp.png");

// create a basic scene
var model = ModelRoot.CreateModel();
Expand Down

0 comments on commit ed4450a

Please sign in to comment.