Skip to content

Commit 5afef92

Browse files
authored
Merge pull request #133 from EverseDevelopment/86b7ayyjt/MissingCompressionDlls
Fixed Compression dll locations
2 parents fa8eb19 + 2ba40e0 commit 5afef92

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Common_glTF_Exporter/Export/Draco.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ public static void Compress(Preferences preferences)
3232
files.Add(fileToCompress);
3333
}
3434

35-
#if REVIT2025 || REVIT2026
35+
#if REVIT2025 || REVIT2026
3636

3737
var loadContext = new NonCollectibleAssemblyLoadContext();
3838

39-
string programDataPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
39+
string programDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
4040
string assemblyPath = Path.Combine(programDataPath, "Autodesk", "ApplicationPlugins", "leia.bundle", "Contents", "2025", "DracoWrapper.dll");
4141

4242
Assembly mixedModeAssembly = loadContext.LoadFromAssemblyPath(assemblyPath);

Common_glTF_Exporter/Export/MeshOpt.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ public static void Compress(Preferences preferences)
3131
files.Add(fileToCompress);
3232
}
3333

34-
#if REVIT2025 || REVIT2026
34+
#if REVIT2025 || REVIT2026
3535

3636
var loadContext = new NonCollectibleAssemblyLoadContext();
3737

38-
string programDataPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
38+
string programDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
3939
string meshOptPath = Path.Combine(programDataPath, "Autodesk", "ApplicationPlugins", "leia.bundle", "Contents", "2025", "MeshOpt.dll");
4040
Assembly mixedModeAssembly = loadContext.LoadFromAssemblyPath(meshOptPath);
4141
MethodInfo defaultSettings = mixedModeAssembly.GetType("Gltf.GltfSettings").GetMethod("defaults");

0 commit comments

Comments
 (0)