Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_select.c
| Show First 20 Lines • Show All 187 Lines • ▼ Show 20 Lines | if (recursive) { | ||||
| do_outliner_object_select_recursive(view_layer, ob, (base->flag & BASE_SELECTED) != 0); | do_outliner_object_select_recursive(view_layer, ob, (base->flag & BASE_SELECTED) != 0); | ||||
| } | } | ||||
| if (set != OL_SETSEL_NONE) { | if (set != OL_SETSEL_NONE) { | ||||
| ED_object_base_activate(C, base); /* adds notifier */ | ED_object_base_activate(C, base); /* adds notifier */ | ||||
| WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, scene); | WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, scene); | ||||
| } | } | ||||
| } | } | ||||
| if (ob != scene->obedit) | |||||
| ED_object_editmode_exit(C, EM_FREEDATA | EM_FREEUNDO | EM_WAITCURSOR | EM_DO_UNDO); | |||||
| return OL_DRAWSEL_NORMAL; | return OL_DRAWSEL_NORMAL; | ||||
| } | } | ||||
| static eOLDrawState tree_element_active_material( | static eOLDrawState tree_element_active_material( | ||||
| bContext *C, Scene *UNUSED(scene), ViewLayer *view_layer, SpaceOops *soops, | bContext *C, Scene *UNUSED(scene), ViewLayer *view_layer, SpaceOops *soops, | ||||
| TreeElement *te, const eOLSetState set) | TreeElement *te, const eOLSetState set) | ||||
| { | { | ||||
| TreeElement *tes; | TreeElement *tes; | ||||
| ▲ Show 20 Lines • Show All 969 Lines • Show Last 20 Lines | |||||