We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8efdd03 commit fa9e96eCopy full SHA for fa9e96e
Assets/FbxExporters/Editor/FbxExportSettings.cs
@@ -207,6 +207,9 @@ public static void SetRelativeSavePath(string newPath) {
207
/// </summary>
208
public static string ConvertToAssetRelativePath(string fullPathInAssets, bool requireSubdirectory = true)
209
{
210
+ if (!Path.IsPathRooted(fullPathInAssets)) {
211
+ fullPathInAssets = Path.GetFullPath(fullPathInAssets);
212
+ }
213
var relativePath = GetRelativePath(Application.dataPath, fullPathInAssets);
214
if (requireSubdirectory && relativePath.StartsWith("..")) {
215
if (relativePath.Length == 2 || relativePath[2] == '/') {
0 commit comments