Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipAlg committed Oct 1, 2024
1 parent e278b83 commit 3c6b479
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
13 changes: 6 additions & 7 deletions Editor/AGXUnityEditor/IO/AGXFileInfo.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using System;
using System.IO;
using System.Linq;
using UnityEngine;
using UnityEditor;
using UnityEngine;

namespace AGXUnityEditor.IO
{
Expand Down Expand Up @@ -81,7 +80,7 @@ public FileType FindType( FileInfo info )
FileType.AGXPrefab :
FileType.Unknown;
}

/// <summary>
/// True if valid path was given.
/// </summary>
Expand Down Expand Up @@ -250,11 +249,11 @@ private void Construct( string path )
}
}

if( path.StartsWith( "Packages/" ) ) {
RootDirectory = Path.GetDirectoryName( path).Replace( '\\', '/' );
} else {
if ( path.StartsWith( "Packages/" ) )
RootDirectory = Path.GetDirectoryName( path ).Replace( '\\', '/' );
else
RootDirectory = Utils.MakeRelative( m_fileInfo.Directory.FullName, Application.dataPath ).Replace( '\\', '/' );
}

// If the file is located in the root Assets folder the relative directory
// is the empty string and Unity requires the relative path to include "Assets".
if ( RootDirectory == string.Empty )
Expand Down
2 changes: 1 addition & 1 deletion Editor/AGXUnityEditor/Windows/ExamplesManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ public static DependencyState GetDependencyState( string packageName )
return s_dependencyData.ContainsKey( packageName ) ? s_dependencyData[ packageName ] : DependencyState.Unknown;
}

private static string s_metadataURL = @"file:///C:/Users/Filip/Dev/upm/AGXUnity/build/windows/deploy/public_examples/test/current/ExampleMetadata.json";
private static string s_metadataURL = @"https://us.download.algoryx.se/AGXUnity/examples/current/ExampleMetadata.json";
private static ListRequest s_listPackagesRequest = null;
private static List<AddRequest> s_addPackageRequests = new List<AddRequest>();
private static List<ExampleData> s_exampleData = new List<ExampleData>();
Expand Down
1 change: 0 additions & 1 deletion Editor/AGXUnityEditor/Windows/ExamplesWindow.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Linq;
using UnityEditor;
using UnityEditor.PackageManager.UI;
using UnityEditor.SceneManagement;
using UnityEngine;
using GUI = AGXUnity.Utils.GUI;
Expand Down

0 comments on commit 3c6b479

Please sign in to comment.