forked from bartvdbraak/blender
2.5 filebrowser
fix operator property name 'type' was used by sequencer for strip effect type. Changed to 'filemode' for file browser.
This commit is contained in:
parent
69496abf1d
commit
b1e418db20
@ -181,7 +181,7 @@ static void file_panel_operator(const bContext *C, Panel *pa)
|
||||
RNA_STRUCT_BEGIN(op->ptr, prop) {
|
||||
if(strcmp(RNA_property_identifier(prop), "rna_type") == 0)
|
||||
continue;
|
||||
if(strcmp(RNA_property_identifier(prop), "type") == 0)
|
||||
if(strcmp(RNA_property_identifier(prop), "filemode") == 0)
|
||||
continue;
|
||||
if(strcmp(RNA_property_identifier(prop), "path") == 0)
|
||||
continue;
|
||||
|
@ -124,7 +124,7 @@ short ED_fileselect_set_params(SpaceFile *sfile)
|
||||
if (op) {
|
||||
BLI_strncpy(params->title, op->type->name, sizeof(params->title));
|
||||
|
||||
params->type = RNA_int_get(op->ptr, "type");
|
||||
params->type = RNA_int_get(op->ptr, "filemode");
|
||||
|
||||
if (RNA_property_is_set(op->ptr, "path")) {
|
||||
RNA_string_get(op->ptr, "path", name);
|
||||
|
@ -528,7 +528,7 @@ void WM_operator_properties_filesel(wmOperatorType *ot, int filter, short type)
|
||||
RNA_def_boolean(ot->srna, "filter_text", (filter & TEXTFILE), "Filter text files", "");
|
||||
RNA_def_boolean(ot->srna, "filter_folder", (filter & FOLDERFILE), "Filter folders", "");
|
||||
|
||||
RNA_def_int(ot->srna, "type", type, FILE_LOADLIB, FILE_SPECIAL,
|
||||
RNA_def_int(ot->srna, "filemode", type, FILE_LOADLIB, FILE_SPECIAL,
|
||||
"File Browser Mode", "The setting for the file browser mode to load a .blend file, a library or a special file.",
|
||||
FILE_LOADLIB, FILE_SPECIAL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user