Skip to content

Commit 216ff5a

Browse files
committed
Fix path check.
1 parent 3b169e5 commit 216ff5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

com.unity.formats.fbx/Editor/ExportModelEditorWindow.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ protected void OnGUI ()
376376
ExportSettings.instance.SelectedFbxPath = EditorGUILayout.Popup (ExportSettings.instance.SelectedFbxPath, pathLabels, GUILayout.MinWidth(SelectableLabelMinWidth));
377377

378378
// Set export setting for exporting outside the project on choosing a path
379-
if (string.IsNullOrEmpty(ExportSettings.ConvertToAssetRelativePath(pathLabels[ExportSettings.instance.SelectedFbxPath])))
379+
if (!pathLabels[ExportSettings.instance.SelectedFbxPath].Substring(0, 6).Equals("Assets"))
380380
{
381381
ExportSettings.instance.ExportOutsideProject = true;
382382
}
@@ -406,6 +406,7 @@ protected void OnGUI ()
406406
// We're exporting outside Assets folder, so store the absolute path
407407
else if (string.IsNullOrEmpty(relativePath))
408408
{
409+
ExportSettings.instance.ExportOutsideProject = true;
409410
ExportSettings.AddFbxSavePath(fullPath);
410411
}
411412
// Store the relative path to the Assets folder

0 commit comments

Comments
 (0)