Skip to content

Commit f8d2966

Browse files
committed
small fixes
- update module template path to represent zip contents - remove unused exception - refresh asset database after unzipping integrations
1 parent a16bbcc commit f8d2966

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Assets/FbxExporters/Editor/InstallIntegration.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static string INTEGRATION_FOLDER_PATH
3636
}
3737
}
3838

39-
public const string MODULE_TEMPLATE_PATH = "FbxExporters/Integrations/Autodesk/maya/" + MODULE_FILENAME + ".txt";
39+
public const string MODULE_TEMPLATE_PATH = "Integrations/Autodesk/maya/" + MODULE_FILENAME + ".txt";
4040

4141
#if UNITY_EDITOR_OSX
4242
private const string MAYA_MODULES_PATH = "Library/Preferences/Autodesk/Maya/modules";
@@ -46,12 +46,6 @@ public static string INTEGRATION_FOLDER_PATH
4646
private const string MAYA_MODULES_PATH = "maya/modules";
4747
#endif
4848

49-
public class MayaException : System.Exception {
50-
public MayaException() { }
51-
public MayaException(string message) : base(message) { }
52-
public MayaException(string message, System.Exception inner) : base(message, inner) { }
53-
}
54-
5549
// Use string to define escaped quote
5650
// Windows needs the backslash
5751
#if UNITY_EDITOR_OSX || UNITY_EDITOR_LINUX
@@ -546,6 +540,9 @@ public static void DecompressZip(string zipPath, string destPath){
546540
myProcess.EnableRaisingEvents = true;
547541
myProcess.Start();
548542
myProcess.WaitForExit();
543+
544+
// in case we unzip inside the Assets folder, make sure it updates
545+
AssetDatabase.Refresh ();
549546
}
550547
}
551548
}

0 commit comments

Comments
 (0)