forked from blender/blender
index-of-nearest-104619 #2
@ -118,7 +118,7 @@ ENUM_OPERATORS(eFileAttributes, FILE_ATTR_HARDLINK);
|
|||||||
* \{ */
|
* \{ */
|
||||||
|
|
||||||
typedef enum FileExternalOperation {
|
typedef enum FileExternalOperation {
|
||||||
FILE_EXTERNAL_OPERATION_OPEN = 0,
|
FILE_EXTERNAL_OPERATION_OPEN = 1,
|
||||||
FILE_EXTERNAL_OPERATION_FOLDER_OPEN,
|
FILE_EXTERNAL_OPERATION_FOLDER_OPEN,
|
||||||
/* Following are Windows-only: */
|
/* Following are Windows-only: */
|
||||||
FILE_EXTERNAL_OPERATION_EDIT,
|
FILE_EXTERNAL_OPERATION_EDIT,
|
||||||
|
@ -1832,7 +1832,7 @@ static int file_external_operation_exec(bContext *C, wmOperator *op)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
BKE_reportf(
|
BKE_reportf(
|
||||||
op->reports, RPT_ERROR, "Failure to perform exernal file operation on \"%s\"", filepath);
|
op->reports, RPT_ERROR, "Failure to perform external file operation on \"%s\"", filepath);
|
||||||
WM_cursor_set(CTX_wm_window(C), WM_CURSOR_DEFAULT);
|
WM_cursor_set(CTX_wm_window(C), WM_CURSOR_DEFAULT);
|
||||||
return OPERATOR_CANCELLED;
|
return OPERATOR_CANCELLED;
|
||||||
}
|
}
|
||||||
@ -1869,7 +1869,7 @@ void FILE_OT_external_operation(wmOperatorType *ot)
|
|||||||
RNA_def_enum(ot->srna,
|
RNA_def_enum(ot->srna,
|
||||||
"operation",
|
"operation",
|
||||||
file_external_operation,
|
file_external_operation,
|
||||||
0,
|
FILE_EXTERNAL_OPERATION_OPEN,
|
||||||
"Operation",
|
"Operation",
|
||||||
"Operation to perform on the file or path");
|
"Operation to perform on the file or path");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user