From 4d2f0cea186cda3025130075c22d232bd7bdc1c8 Mon Sep 17 00:00:00 2001 From: Antoine Pilote Date: Sat, 23 Sep 2023 21:49:33 -0400 Subject: [PATCH] New material now has extension if user forgot to add it --- Editor/src/Windows/FileSystemUI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Editor/src/Windows/FileSystemUI.cpp b/Editor/src/Windows/FileSystemUI.cpp index d92b3460..bf906b8b 100644 --- a/Editor/src/Windows/FileSystemUI.cpp +++ b/Editor/src/Windows/FileSystemUI.cpp @@ -461,7 +461,7 @@ namespace Nuake material->IsEmbedded = false; auto jsonData = material->Serialize(); - FileSystem::BeginWriteFile(path); + FileSystem::BeginWriteFile(finalPath); FileSystem::WriteLine(jsonData.dump(4)); FileSystem::EndWriteFile();