Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_select.c
| Show First 20 Lines • Show All 967 Lines • ▼ Show 20 Lines | tree_element_type_active(C, scene, view_layer, soops, te, tselem, | ||||
| recursive); | recursive); | ||||
| } | } | ||||
| } | } | ||||
| /** | /** | ||||
| * \param extend: Don't deselect other items, only modify \a te. | * \param extend: Don't deselect other items, only modify \a te. | ||||
| * \param toggle: Select \a te when not selected, deselect when selected. | * \param toggle: Select \a te when not selected, deselect when selected. | ||||
| */ | */ | ||||
| static void outliner_item_select(SpaceOops *soops, const TreeElement *te, const bool extend, const bool toggle) | void outliner_item_select(SpaceOops *soops, const TreeElement *te, const bool extend, const bool toggle) | ||||
| { | { | ||||
| TreeStoreElem *tselem = TREESTORE(te); | TreeStoreElem *tselem = TREESTORE(te); | ||||
| const short new_flag = toggle ? (tselem->flag ^ TSE_SELECTED) : (tselem->flag | TSE_SELECTED); | const short new_flag = toggle ? (tselem->flag ^ TSE_SELECTED) : (tselem->flag | TSE_SELECTED); | ||||
| if (extend == false) { | if (extend == false) { | ||||
| outliner_set_flag(&soops->tree, TSE_SELECTED, false); | outliner_set_flag(&soops->tree, TSE_SELECTED, false); | ||||
| } | } | ||||
| tselem->flag = new_flag; | tselem->flag = new_flag; | ||||
| ▲ Show 20 Lines • Show All 192 Lines • Show Last 20 Lines | |||||