Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_intern.hh
| Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | ELEM(GS((_id)->name), \ | ||||
| ID_BR, \ | ID_BR, \ | ||||
| ID_PA, \ | ID_PA, \ | ||||
| ID_GD, \ | ID_GD, \ | ||||
| ID_LS, \ | ID_LS, \ | ||||
| ID_LP, \ | ID_LP, \ | ||||
| ID_CV, \ | ID_CV, \ | ||||
| ID_PT, \ | ID_PT, \ | ||||
| ID_VO, \ | ID_VO, \ | ||||
| ID_SIM) || /* Only in 'blendfile' mode ... :/ */ \ | ID_SIM, \ | ||||
| ID_VE) || /* Only in 'blendfile' mode ... :/ */ \ | |||||
| ELEM(GS((_id)->name), \ | ELEM(GS((_id)->name), \ | ||||
| ID_SCR, \ | ID_SCR, \ | ||||
| ID_WM, \ | ID_WM, \ | ||||
| ID_TXT, \ | ID_TXT, \ | ||||
| ID_VF, \ | ID_VF, \ | ||||
| ID_SO, \ | ID_SO, \ | ||||
| ID_CF, \ | ID_CF, \ | ||||
| ID_PAL, \ | ID_PAL, \ | ||||
| ▲ Show 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | |||||
| * Container to avoid passing around these variables to many functions. | * Container to avoid passing around these variables to many functions. | ||||
| * Also so we can have one place to assign these variables. | * Also so we can have one place to assign these variables. | ||||
| */ | */ | ||||
| struct TreeViewContext { | struct TreeViewContext { | ||||
| /* Scene level. */ | /* Scene level. */ | ||||
| struct Scene *scene; | struct Scene *scene; | ||||
| struct ViewLayer *view_layer; | struct ViewLayer *view_layer; | ||||
| struct VideoEdit *video_edit; | |||||
| /* Object level. */ | /* Object level. */ | ||||
| /** Avoid `BKE_view_layer_active_object_get` everywhere. */ | /** Avoid `BKE_view_layer_active_object_get` everywhere. */ | ||||
| Object *obact; | Object *obact; | ||||
| Object *ob_edit; | Object *ob_edit; | ||||
| /** | /** | ||||
| * The pose object may not be the active object (when in weight paint mode). | * The pose object may not be the active object (when in weight paint mode). | ||||
| * Checking this in draw loops isn't efficient, so set only once. */ | * Checking this in draw loops isn't efficient, so set only once. */ | ||||
| Object *ob_pose; | Object *ob_pose; | ||||
| ▲ Show 20 Lines • Show All 452 Lines • Show Last 20 Lines | |||||