File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
com.unity.formats.fbx/Tests/Scripts Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ public abstract class ExporterTestBaseAPI
14
14
/// material or scene or fbx.
15
15
/// </summary>
16
16
public const string PathToTestData = "Packages/com.unity.formats.fbx/Tests" ;
17
+ public const string AltPathToTestData = "Packages/com.unity.formats.fbx.tests/Tests" ;
17
18
18
19
/// <summary>
19
20
/// Sleep an amount of time (in ms) so we can safely assume that the
@@ -306,6 +307,11 @@ public static void AssertSameHierarchy (
306
307
public string FindPathInUnitTests ( string path ) {
307
308
// This used to be complicated; not so much anymore.
308
309
var virtualPath = PathToTestData + '/' + path ;
310
+ if ( ! System . IO . File . Exists ( virtualPath ) )
311
+ {
312
+ virtualPath = AltPathToTestData + '/' + path ;
313
+ }
314
+
309
315
if ( ! System . IO . File . Exists ( virtualPath ) ) {
310
316
return null ;
311
317
}
You can’t perform that action at this time.
0 commit comments