Cleanup: expand on why the extension isn't replaced for blend-file save
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user