Skip to content

Commit f5041c8

Browse files
authored
Merge pull request #303 from Unity-Technologies/UT-3274-fix-dllnotfound-issues
UT-3274 fix outdated dll paths
2 parents 2adb460 + fa3124f commit f5041c8

File tree

3 files changed

+7
-19
lines changed

3 files changed

+7
-19
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changes in FBX SDK C# Bindings
22

3+
## [3.0.1-preview.1] - 2020-03-25
4+
5+
BUGFIXES
6+
* Fix incorrect DLL path used when calling functions, giving DLL not found errors.
7+
38
## [3.0.0-preview.1] - 2019-12-03
49

510
CHANGES

Source/fbxsdk.i

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -183,26 +183,9 @@
183183
/// <summary>
184184
/// String to use in the DllImport below.
185185
///
186-
/// This must be a constant, but it changes depending on the platform and deployment.
187-
///
188-
/// When deploying as an asset (a .unitypackage), define
189-
/// COM_UNITY_FORMATS_FBX_AS_ASSET and compile the package.
190-
///
191-
/// When deploying with Unity Package Manager, do not add defines: the
192-
/// default platform defines suffice.
186+
/// This must be a constant.
193187
/// </summary>
194-
#if COM_UNITY_FORMATS_FBX_AS_ASSET || UNITY_STANDALONE
195188
const string DllImportName = "$dllimport";
196-
#elif UNITY_EDITOR_OSX
197-
const string DllImportName = "Packages/com.autodesk.fbx/MacOS/$dllimport.bundle/Contents/MacOS/$dllimport";
198-
#elif UNITY_EDITOR_LINUX
199-
const string DllImportName = "Packages/com.autodesk.fbx/Linux/$dllimport.so";
200-
#elif UNITY_EDITOR_WIN
201-
const string DllImportName = "Packages/com.autodesk.fbx/Windows/$dllimport.dll";
202-
#else
203-
#error "FbxSdk: C# bindings for this platform haven't been implemented yet, sorry."
204-
const string DllImportName = "$dllimport";
205-
#endif
206189

207190
%}
208191

proto.com.autodesk.fbx/package.json.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
],
1111
"name": "com.autodesk.fbx",
1212
"unity": "2018.2",
13-
"version": "3.0.0-preview.1"
13+
"version": "3.0.1-preview.1"
1414
}

0 commit comments

Comments
 (0)