|
Blender
V3.3
|
#include <stdio.h>#include <string.h>#include "BLI_listbase.h"#include "BLI_utildefines.h"#include "BKE_context.h"#include "BKE_report.h"#include "WM_api.h"#include "WM_types.h"#include "wm_event_system.h"#include "RNA_access.h"#include "RNA_define.h"#include "ED_screen.h"#include "script_intern.h"Go to the source code of this file.
Functions | |
| static int | run_pyfile_exec (bContext *C, wmOperator *op) |
| void | SCRIPT_OT_python_file_run (wmOperatorType *ot) |
| static int | script_reload_exec (bContext *C, wmOperator *op) |
| void | SCRIPT_OT_reload (wmOperatorType *ot) |
|
static |
Definition at line 32 of file script_edit.c.
References BPY_run_filepath(), C, CTX_wm_region(), ED_region_tag_redraw(), FILE_MAX, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_string_get(), and void.
Referenced by SCRIPT_OT_python_file_run().
| void SCRIPT_OT_python_file_run | ( | wmOperatorType * | ot | ) |
Definition at line 50 of file script_edit.c.
References wmOperatorType::description, wmOperatorType::exec, FILE_MAX, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_string_file_path(), run_pyfile_exec(), and wmOperatorType::srna.
Referenced by script_operatortypes().
| void SCRIPT_OT_reload | ( | wmOperatorType * | ot | ) |
Definition at line 136 of file script_edit.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and script_reload_exec().
Referenced by script_operatortypes().
|
static |
Definition at line 92 of file script_edit.c.
References BKE_report(), BPY_run_string_eval(), BPY_run_string_exec(), C, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, UNUSED_VARS, and WM_cursor_wait().
Referenced by SCRIPT_OT_reload().