Cleanup: expand on why the extension isn't replaced for blend-file save

This commit is contained in:
Campbell Barton
2023-04-19 12:45:47 +10:00
parent 61fe8da989
commit 9e6757f20f
@@ -3265,8 +3265,9 @@ static bool wm_save_mainfile_check(bContext * /*C*/, wmOperator *op)
char filepath[FILE_MAX];
RNA_string_get(op->ptr, "filepath", filepath);
if (!BKE_blendfile_extension_check(filepath)) {
/* some users would prefer BLI_path_extension_replace(),
* we keep getting nitpicking bug reports about this - campbell */
/* NOTE(@ideasman42): some users would prefer #BLI_path_extension_replace(),
* we have had some nitpicking bug reports about this.
* Always adding the extension as users may use '.' as part of the file-name. */
BLI_path_extension_ensure(filepath, FILE_MAX, ".blend");
RNA_string_set(op->ptr, "filepath", filepath);
return true;