File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,13 @@ public override void OnInspectorGUI() {
52
52
string path = EditorUtility . OpenFolderPanel (
53
53
"Select Model Prefabs Path" , Application . dataPath , null
54
54
) ;
55
- // Make sure something is selected, and that it is in the Asset folder
56
- if ( ! string . IsNullOrEmpty ( path ) && path . StartsWith ( Application . dataPath ) ) {
57
- exportSettings . convertToModelSavePath = path ;
58
- } else {
59
- Debug . LogWarning ( "Please select a location in Assets/" ) ;
55
+ // Unless the user canceled, make sure they chose something in the Assets folder.
56
+ if ( ! string . IsNullOrEmpty ( path ) ) {
57
+ if ( path . StartsWith ( Application . dataPath ) ) {
58
+ exportSettings . convertToModelSavePath = path ;
59
+ } else {
60
+ Debug . LogWarning ( "Please select a location in Assets/" ) ;
61
+ }
60
62
}
61
63
}
62
64
You can’t perform that action at this time.
0 commit comments