Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_edit.c
| Show First 20 Lines • Show All 766 Lines • ▼ Show 20 Lines | if (tselem->flag & TSE_SELECTED && ELEM(tselem->type, 0, TSE_LAYER_COLLECTION)) { | ||||
| ID *id = tselem->id; | ID *id = tselem->id; | ||||
| if (!(id->tag & LIB_TAG_DOIT)) { | if (!(id->tag & LIB_TAG_DOIT)) { | ||||
| BKE_copybuffer_tag_ID(tselem->id); | BKE_copybuffer_tag_ID(tselem->id); | ||||
| num_ids++; | num_ids++; | ||||
| } | } | ||||
| } | } | ||||
| /* go over sub-tree */ | /* go over sub-tree */ | ||||
| if (TSELEM_OPEN(tselem, space_outliner)) { | |||||
| num_ids += outliner_id_copy_tag(space_outliner, &te->subtree); | num_ids += outliner_id_copy_tag(space_outliner, &te->subtree); | ||||
| } | } | ||||
| } | |||||
| return num_ids; | return num_ids; | ||||
| } | } | ||||
| static int outliner_id_copy_exec(bContext *C, wmOperator *op) | static int outliner_id_copy_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| Main *bmain = CTX_data_main(C); | Main *bmain = CTX_data_main(C); | ||||
| SpaceOutliner *space_outliner = CTX_wm_space_outliner(C); | SpaceOutliner *space_outliner = CTX_wm_space_outliner(C); | ||||
| ▲ Show 20 Lines • Show All 1,603 Lines • Show Last 20 Lines | |||||