Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/util/ed_util.c
| Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | |||||
| /* ********* general editor util funcs, not BKE stuff please! ********* */ | /* ********* general editor util funcs, not BKE stuff please! ********* */ | ||||
| void ED_editors_init(bContext *C) | void ED_editors_init(bContext *C) | ||||
| { | { | ||||
| wmWindowManager *wm = CTX_wm_manager(C); | wmWindowManager *wm = CTX_wm_manager(C); | ||||
| Main *bmain = CTX_data_main(C); | Main *bmain = CTX_data_main(C); | ||||
| Scene *sce = CTX_data_scene(C); | Scene *sce = CTX_data_scene(C); | ||||
| SceneLayer *sl = CTX_data_scene_layer(C); | ViewLayer *sl = CTX_data_view_layer(C); | ||||
| Object *ob, *obact = (sl && sl->basact) ? sl->basact->object : NULL; | Object *ob, *obact = (sl && sl->basact) ? sl->basact->object : NULL; | ||||
| ID *data; | ID *data; | ||||
| /* This is called during initialization, so we don't want to store any reports */ | /* This is called during initialization, so we don't want to store any reports */ | ||||
| ReportList *reports = CTX_wm_reports(C); | ReportList *reports = CTX_wm_reports(C); | ||||
| int reports_flag_prev = reports->flag & ~RPT_STORE; | int reports_flag_prev = reports->flag & ~RPT_STORE; | ||||
| SWAP(int, reports->flag, reports_flag_prev); | SWAP(int, reports->flag, reports_flag_prev); | ||||
| ▲ Show 20 Lines • Show All 279 Lines • Show Last 20 Lines | |||||