New material now has extension if user forgot to add it

This commit is contained in:
Antoine Pilote
2023-09-23 21:49:33 -04:00
parent 3124271a62
commit 4d2f0cea18

View File

@@ -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();