Skip to content

Commit 7656faf

Browse files
author
David Lassonde
committed
Merge branch 'UNI-40760-runtime_support_with_packman' into v1.6
2 parents cefe7a3 + 169ef4c commit 7656faf

File tree

4 files changed

+99
-114
lines changed

4 files changed

+99
-114
lines changed

Packages/com.unity.formats.fbxsdk/Scripts/GlobalsPINVOKE.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,7 @@ private static int InitFbxAllocators()
196196
{
197197
int result = -1;
198198
bool verbose = UnityEngine.Debug.unityLogger.logEnabled;
199-
UnityEditor.EditorApplication.LockReloadAssemblies();
200199
result = _InitFbxAllocators();
201-
UnityEditor.EditorApplication.UnlockReloadAssemblies();
202200

203201
if (result!=1 && verbose)
204202
{
@@ -225,13 +223,13 @@ private static int InitFbxAllocators()
225223
/// When deploying with Unity Package Manager, do not add defines: the
226224
/// default platform defines suffice.
227225
/// </summary>
228-
#if COM_UNITY_FORMATS_FBX_AS_ASSET
226+
#if COM_UNITY_FORMATS_FBX_AS_ASSET || UNITY_STANDALONE
229227
const string DllImportName = "UnityFbxSdkNative";
230-
#elif UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
228+
#elif UNITY_EDITOR_OSX
231229
const string DllImportName = "Packages/com.unity.formats.fbxsdk/MacOS/UnityFbxSdkNative.bundle/Contents/MacOS/UnityFbxSdkNative";
232-
#elif UNITY_STANDALONE_LINUX || UNITY_EDITOR_LINUX
230+
#elif UNITY_EDITOR_LINUX
233231
const string DllImportName = "Packages/com.unity.formats.fbxsdk/Linux/UnityFbxSdkNative.so";
234-
#elif UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
232+
#elif UNITY_EDITOR_WIN
235233
const string DllImportName = "Packages/com.unity.formats.fbxsdk/Windows/UnityFbxSdkNative.dll";
236234
#else
237235
#error "FbxSdk: C# bindings for this platform haven't been implemented yet, sorry."
Binary file not shown.

Packages/com.unity.formats.fbxsdk/Windows/UnityFbxSdkNative.dll.meta

Lines changed: 87 additions & 103 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
22
"name": "com.unity.formats.fbxsdk",
3-
"references": [
4-
],
3+
"references": [],
4+
"optionalUnityReferences": [],
55
"includePlatforms": [
6-
"Editor"
6+
"Editor",
7+
"macOSStandalone",
8+
"WindowsStandalone64"
79
],
8-
"excludePlatforms": []
9-
}
10+
"excludePlatforms": [],
11+
"allowUnsafeCode": false
12+
}

0 commit comments

Comments
 (0)