Skip to content

Commit 217a65e

Browse files
committed
don't check twice if overwriting existing
- already checking below
1 parent ccb46b5 commit 217a65e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Assets/FbxExporters/Editor/ConvertToPrefabEditorWindow.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,6 @@ protected override bool Export ()
100100
var prefabDirPath = ExportSettings.GetPrefabAbsoluteSavePath ();
101101
var prefabPath = System.IO.Path.Combine (prefabDirPath, m_prefabFileName + ".prefab");
102102

103-
// check if file already exists, give a warning if it does
104-
if (!OverwriteExistingFile (fbxPath) || !OverwriteExistingFile (prefabPath)) {
105-
return false;
106-
}
107-
108103
if (ToExport == null) {
109104
Debug.LogError ("FbxExporter: missing object for conversion");
110105
return false;

0 commit comments

Comments
 (0)