|
10 | 10 | using VRC.SDK3.Avatars.ScriptableObjects; |
11 | 11 |
|
12 | 12 | public class MintyToggleGenerator : EditorWindow { |
13 | | - private const string Version = "1.0.0"; |
| 13 | + private const string Version = "1.0.1"; |
14 | 14 | private const string LogPrefix = "[<color=#9fffe3>MintyToggle Generator</color>] "; |
15 | 15 | private static readonly string ProjectUserAgent = $"MintyToggleGenerator/{Version} Internal UnityWebRequest"; |
16 | 16 | private static bool _updateAvailable; |
@@ -48,7 +48,7 @@ private static void CheckForUpdate() { |
48 | 48 | Debug.Log(LogPrefix + "Checking for updates..."); |
49 | 49 | var wc = new WebClient(); |
50 | 50 | wc.Headers.Add("User-Agent", ProjectUserAgent); |
51 | | - _newVersionString = wc.DownloadString("https://raw.githubusercontent.com/Minty-Labs/Unity-Tools/main/Animation-Toggle-Generator/Remote/version.txt"); |
| 51 | + _newVersionString = wc.DownloadString("https://raw.githubusercontent.com/Minty-Labs/Unity-Tools/refs/heads/main/Unity-Animation-Toggle-Generator/Remote/version.txt"); |
52 | 52 | _updateAvailable = _newVersionString != Version; |
53 | 53 | Debug.Log(LogPrefix + (_updateAvailable ? "Update Available" : "No Update Available")); |
54 | 54 | wc.Dispose(); |
@@ -546,7 +546,7 @@ private void CreateAnimatorLayer(AnimationClip enabledClip, AnimationClip disabl |
546 | 546 | // Allows you get the current folder that is opened in the project window |
547 | 547 | private static string GetSelectedPathOrFallback() { |
548 | 548 | var path = "Assets"; |
549 | | - |
| 549 | + |
550 | 550 | foreach (var obj in Selection.GetFiltered(typeof(Object), SelectionMode.Assets)) { |
551 | 551 | path = AssetDatabase.GetAssetPath(obj); |
552 | 552 | if (string.IsNullOrEmpty(path) || !File.Exists(path)) continue; |
|
0 commit comments