Skip to content

Commit

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

This reverts commit ed4450a.
  • Loading branch information
MeltyPlayer committed Jan 15, 2023
1 parent b952dbd commit 849b13a
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Generic;
using System.IO;
using System.Numerics;

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

// we'll use our icon as the source texture
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");
var imagePath = System.IO.Path.Combine(TestContext.CurrentContext.WorkDirectory, "..\\..\\..\\..\\..\\build\\Icons\\glTF2Sharp.png");

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

0 comments on commit 849b13a

Please sign in to comment.