Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_select.c
| Show First 20 Lines • Show All 1,026 Lines • ▼ Show 20 Lines | switch (tselem->type) { | ||||
| case TSE_VIEW_COLLECTION_BASE: | case TSE_VIEW_COLLECTION_BASE: | ||||
| return tree_element_active_master_collection(C, te, set); | return tree_element_active_master_collection(C, te, set); | ||||
| case TSE_LAYER_COLLECTION: | case TSE_LAYER_COLLECTION: | ||||
| return tree_element_active_layer_collection(C, te, set); | return tree_element_active_layer_collection(C, te, set); | ||||
| } | } | ||||
| return OL_DRAWSEL_NONE; | return OL_DRAWSEL_NONE; | ||||
| } | } | ||||
| bPoseChannel *outliner_find_parent_bone(TreeElement *te, TreeElement **r_bone_te) | |||||
| { | |||||
| TreeStoreElem *tselem; | |||||
| te = te->parent; | |||||
| while (te) { | |||||
| tselem = TREESTORE(te); | |||||
| if (tselem->type == TSE_POSE_CHANNEL) { | |||||
| *r_bone_te = te; | |||||
| return (bPoseChannel *)te->directdata; | |||||
| } | |||||
| te = te->parent; | |||||
| } | |||||
| return NULL; | |||||
| } | |||||
| /* ================================================ */ | /* ================================================ */ | ||||
| /** | /** | ||||
| * Action when clicking to activate an item (typically under the mouse cursor), | * Action when clicking to activate an item (typically under the mouse cursor), | ||||
| * but don't do any cursor intersection checks. | * but don't do any cursor intersection checks. | ||||
| * | * | ||||
| * Needed to run from operators accessed from a menu. | * Needed to run from operators accessed from a menu. | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 679 Lines • Show Last 20 Lines | |||||