File Browser: Manual auto-increase name support for output filepaths
This functionality was present until Blender 2.80. Basically it adds back the "+" and "-" buttons in the file browser when it stores an output filepath. This is useful for someone rendering multiple versions of an animation (or a composition) to compare. At the moment this is used for the render output, and the File Output node in the compositor. Differential Revision: https://developer.blender.org/D15968
This commit is contained in:
@@ -120,16 +120,14 @@ void WM_operator_properties_filesel(wmOperatorType *ot,
|
||||
RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE);
|
||||
}
|
||||
|
||||
if (action == FILE_SAVE) {
|
||||
/* NOTE: this is only used to check if we should highlight the filename area red when the
|
||||
* filepath is an existing file. */
|
||||
prop = RNA_def_boolean(ot->srna,
|
||||
"check_existing",
|
||||
true,
|
||||
"Check Existing",
|
||||
"Check and warn on overwriting existing files");
|
||||
RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE);
|
||||
}
|
||||
/* NOTE: this is only used to check if we should highlight the filename area red when the
|
||||
* filepath is an existing file. */
|
||||
prop = RNA_def_boolean(ot->srna,
|
||||
"check_existing",
|
||||
action == FILE_SAVE,
|
||||
"Check Existing",
|
||||
"Check and warn on overwriting existing files");
|
||||
RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE);
|
||||
|
||||
prop = RNA_def_boolean(
|
||||
ot->srna, "filter_blender", (filter & FILE_TYPE_BLENDER) != 0, "Filter .blend files", "");
|
||||
|
||||
Reference in New Issue
Block a user