File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,15 @@ public override void OnInspectorGUI() {
49
49
EditorStyles . textField , GUILayout . MinWidth ( SelectableLabelMinWidth ) , GUILayout . Height ( EditorGUIUtility . singleLineHeight ) ) ;
50
50
51
51
if ( GUILayout . Button ( "Browse" , EditorStyles . miniButton , GUILayout . Width ( BrowseButtonWidth ) ) ) {
52
+ string initialPath = exportSettings . convertToModelSavePath ;
53
+ bool initialPathIsValid = true ;
54
+ if ( string . IsNullOrEmpty ( initialPath ) ) {
55
+ initialPathIsValid = false ;
56
+ }
52
57
string path = EditorUtility . OpenFolderPanel (
53
- "Select Model Prefabs Path" , Application . dataPath , null
58
+ "Select Model Prefabs Path" , initialPathIsValid ? initialPath : Application . dataPath , null
54
59
) ;
60
+
55
61
// Unless the user canceled, make sure they chose something in the Assets folder.
56
62
if ( ! string . IsNullOrEmpty ( path ) ) {
57
63
if ( path . StartsWith ( Application . dataPath ) ) {
You can’t perform that action at this time.
0 commit comments