naming changes
path -> filepath (for rna and operators, as agreed on with elubie) path -> data_path (for windowmanager context functions, this was alredy used in many places)
This commit is contained in:
@@ -88,10 +88,10 @@ static int file_browse_exec(bContext *C, wmOperator *op)
|
||||
FileBrowseOp *fbo= op->customdata;
|
||||
char *str;
|
||||
|
||||
if (RNA_property_is_set(op->ptr, "path")==0 || fbo==NULL)
|
||||
if (RNA_property_is_set(op->ptr, "filepath")==0 || fbo==NULL)
|
||||
return OPERATOR_CANCELLED;
|
||||
|
||||
str= RNA_string_get_alloc(op->ptr, "path", 0, 0);
|
||||
str= RNA_string_get_alloc(op->ptr, "filepath", 0, 0);
|
||||
RNA_property_string_set(&fbo->ptr, fbo->prop, str);
|
||||
RNA_property_update(C, &fbo->ptr, fbo->prop);
|
||||
MEM_freeN(str);
|
||||
@@ -126,7 +126,7 @@ static int file_browse_invoke(bContext *C, wmOperator *op, wmEvent *event)
|
||||
op->customdata= fbo;
|
||||
|
||||
str= RNA_property_string_get_alloc(&ptr, prop, 0, 0);
|
||||
RNA_string_set(op->ptr, "path", str);
|
||||
RNA_string_set(op->ptr, "filepath", str);
|
||||
MEM_freeN(str);
|
||||
|
||||
WM_event_add_fileselect(C, op);
|
||||
|
||||
Reference in New Issue
Block a user