53 ot->
name =
"Run Python File";
55 ot->
idname =
"SCRIPT_OT_python_file_run";
67 static bool script_test_modal_operators(
bContext *
C)
98 if (script_test_modal_operators(
C)) {
113 (
const char *[]){
"bpy",
NULL},
115 " bpy.utils.load_scripts(reload_scripts=True)\n"
117 "bpy.app.timers.register(fn)");
122 C, (
const char *[]){
"bpy",
NULL},
"bpy.utils.load_scripts(reload_scripts=True)");
139 ot->
name =
"Reload Scripts";
struct wmWindowManager * CTX_wm_manager(const bContext *C)
struct ARegion * CTX_wm_region(const bContext *C)
void BKE_report(ReportList *reports, eReportType type, const char *message)
#define LISTBASE_FOREACH(type, var, list)
bool BPY_run_filepath(struct bContext *C, const char *filepath, struct ReportList *reports) ATTR_NONNULL(1
bool BPY_run_string_eval(struct bContext *C, const char *imports[], const char *expr)
bool BPY_run_string_exec(struct bContext *C, const char *imports[], const char *expr)
void ED_region_tag_redraw(struct ARegion *region)
SyclQueue void void size_t num_bytes void
void RNA_string_get(PointerRNA *ptr, const char *name, char *value)
PropertyRNA * RNA_def_string_file_path(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, int maxlen, const char *ui_name, const char *ui_description)
void SCRIPT_OT_reload(wmOperatorType *ot)
static int script_reload_exec(bContext *C, wmOperator *op)
static int run_pyfile_exec(bContext *C, wmOperator *op)
void SCRIPT_OT_python_file_run(wmOperatorType *ot)
int(* exec)(struct bContext *, struct wmOperator *) ATTR_WARN_UNUSED_RESULT
struct ReportList * reports
struct wmOperatorType * type
void WM_cursor_wait(bool val)