Closed jmickle66666666 closed 2 years ago
Steps to reproduce:
Result:
Even though a new filename is used, an error is thrown:
IOException: Cannot create Assets/Resources/test.fbx because a file with the same name already exists. System.IO.Directory.CreateDirectory (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:88) UnityFBXExporter.FBXExporter.ExportGameObjToFBX (UnityEngine.GameObject gameObj, System.String filename, Boolean copyMaterials, Boolean copyTextures) (at Assets/Plugins/RealtimeCSG/Editor/Thirdparty/UnityFBXExporter/FBXExporter.cs:82) InternalRealtimeCSG.MeshInstanceManager.Export (RealtimeCSG.CSGModel model, ExportType exportType) (at Assets/Plugins/RealtimeCSG/Editor/Scripts/Managers/MeshInstanceManager.cs:1234) RealtimeCSG.ModelInspectorGUI.OnInspectorGUI (UnityEngine.Object[] targets) (at Assets/Plugins/RealtimeCSG/Editor/Scripts/EditorWindows/GUI/ModelInspectorGUI.cs:302) RealtimeCSG.CSGBrushEditorGUI.OnInspectorGUI (UnityEditor.Editor editor, UnityEngine.Object[] targets) (at Assets/Plugins/RealtimeCSG/Editor/Scripts/EditorWindows/GUI/CSGBrushEditorGUI.cs:291) CSGBrushEditor.OnInspectorGUI () (at Assets/Plugins/RealtimeCSG/Editor/Scripts/EditorWindows/BrushEditorManager/CSGBrushEditor.cs:11) UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1240) UnityEditor.DockArea:OnGUI()
The first model file must be renamed to save a new one. However, once you rename the first and save a second one, it saves as the new filename.
e.g: Save model "test.fbx", revert to csg, rename "test.fbx" to "test2.fbx", save csg again as "test3.fbx"
files exist are "test3.fbx" and "test2.fbx"
Thanks for reporting this, I'll take a look at it
I can't seem to be able to reproduce this? Can you try this with the latest version of Realtime-CSG?
Steps to reproduce:
Result:
Even though a new filename is used, an error is thrown:
The first model file must be renamed to save a new one. However, once you rename the first and save a second one, it saves as the new filename.
e.g: Save model "test.fbx", revert to csg, rename "test.fbx" to "test2.fbx", save csg again as "test3.fbx"
files exist are "test3.fbx" and "test2.fbx"