Skip to content

Commit e3a70b2

Browse files
author
Benoit Hudson
committed
ut-511: handle int/long 2018.1/2018.2 API change
From a merged-in change.
1 parent 5cb4ed6 commit e3a70b2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Packages/com.unity.formats.fbx/Editor/Scripts/FbxExporterRepairMissingScripts.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ public static string GetSourceCodeSearchID()
4646
var fbxPrefabObj = AssetDatabase.LoadMainAssetAtPath(FbxExporters.FbxPrefabAutoUpdater.FindFbxPrefabAssetPath());
4747
string searchID = null;
4848
string guid;
49+
#if UNITY_2018_2_OR_LATER
4950
long fileId;
51+
#else
52+
int fileId;
53+
#endif
5054
if(AssetDatabase.TryGetGUIDAndLocalFileIdentifier(fbxPrefabObj, out guid, out fileId))
5155
{
5256
searchID = string.Format(m_idFormat, fileId, guid);
@@ -192,4 +196,4 @@ private static bool ReplaceGUIDInFile (string path, string replacementSearchID)
192196
return false;
193197
}
194198
}
195-
}
199+
}

0 commit comments

Comments
 (0)