|
Blender V4.3
|
#include <cstdio>#include <cstring>#include "BLI_listbase.h"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_report.hh"#include "BLT_translation.hh"#include "WM_api.hh"#include "WM_types.hh"#include "wm_event_system.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "ED_screen.hh"#include "script_intern.hh"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 35 of file script_edit.cc.
References BPY_run_filepath(), CTX_wm_region(), ED_region_tag_redraw(), FILE_MAX, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, and RNA_string_get().
Referenced by SCRIPT_OT_python_file_run().
| void SCRIPT_OT_python_file_run | ( | wmOperatorType * | ot | ) |
Definition at line 53 of file script_edit.cc.
References BLT_I18NCONTEXT_EDITOR_FILEBROWSER, wmOperatorType::description, wmOperatorType::exec, FILE_MAX, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_property_translation_context(), RNA_def_string_file_path(), run_pyfile_exec(), and wmOperatorType::srna.
Referenced by script_operatortypes().
| void SCRIPT_OT_reload | ( | wmOperatorType * | ot | ) |
Definition at line 139 of file script_edit.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and script_reload_exec().
Referenced by script_operatortypes().
|
static |
Definition at line 94 of file script_edit.cc.
References BKE_report(), BPY_run_string_eval(), BPY_run_string_exec(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, UNUSED_VARS, and WM_cursor_wait().
Referenced by SCRIPT_OT_reload().