Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_sync.c
| Show First 20 Lines • Show All 350 Lines • ▼ Show 20 Lines | outliner_sync_selection_from_outliner( | ||||
| scene, view_layer, &te->subtree, sync_types, selected_items); | scene, view_layer, &te->subtree, sync_types, selected_items); | ||||
| } | } | ||||
| } | } | ||||
| /* Set clean outliner and mark other outliners for syncing */ | /* Set clean outliner and mark other outliners for syncing */ | ||||
| void ED_outliner_select_sync_from_outliner(bContext *C, SpaceOutliner *space_outliner) | void ED_outliner_select_sync_from_outliner(bContext *C, SpaceOutliner *space_outliner) | ||||
| { | { | ||||
| /* Don't sync if not checked or in certain outliner display modes */ | /* Don't sync if not checked or in certain outliner display modes */ | ||||
| if (!(space_outliner->flag & SO_SYNC_SELECT) || | if (!(space_outliner->flag & SO_SYNC_SELECT) || ELEM(space_outliner->outlinevis, | ||||
| ELEM(space_outliner->outlinevis, SO_LIBRARIES, SO_DATA_API, SO_ID_ORPHANS)) { | SO_LIBRARIES, | ||||
| SO_OVERRIDES_LIBRARY, | |||||
| SO_DATA_API, | |||||
| SO_ID_ORPHANS)) { | |||||
| return; | return; | ||||
| } | } | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| ViewLayer *view_layer = CTX_data_view_layer(C); | ViewLayer *view_layer = CTX_data_view_layer(C); | ||||
| SyncSelectTypes sync_types; | SyncSelectTypes sync_types; | ||||
| outliner_sync_select_from_outliner_set_types(C, space_outliner, &sync_types); | outliner_sync_select_from_outliner_set_types(C, space_outliner, &sync_types); | ||||
| ▲ Show 20 Lines • Show All 211 Lines • Show Last 20 Lines | |||||