Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_edit.c
| Show All 32 Lines | |||||
| #include "BLI_blenlib.h" | #include "BLI_blenlib.h" | ||||
| #include "BLI_dynstr.h" | #include "BLI_dynstr.h" | ||||
| #include "BLI_path_util.h" | #include "BLI_path_util.h" | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BLT_translation.h" | #include "BLT_translation.h" | ||||
| #include "BKE_action.h" | |||||
| #include "BKE_animsys.h" | #include "BKE_animsys.h" | ||||
| #include "BKE_appdir.h" | #include "BKE_appdir.h" | ||||
| #include "BKE_armature.h" | #include "BKE_armature.h" | ||||
| #include "BKE_blender_copybuffer.h" | #include "BKE_blender_copybuffer.h" | ||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "BKE_idtype.h" | #include "BKE_idtype.h" | ||||
| #include "BKE_lib_id.h" | #include "BKE_lib_id.h" | ||||
| #include "BKE_lib_query.h" | #include "BKE_lib_query.h" | ||||
| #include "BKE_lib_remap.h" | #include "BKE_lib_remap.h" | ||||
| #include "BKE_main.h" | #include "BKE_main.h" | ||||
| #include "BKE_object.h" | |||||
| #include "BKE_report.h" | #include "BKE_report.h" | ||||
| #include "BKE_workspace.h" | #include "BKE_workspace.h" | ||||
| #include "DEG_depsgraph.h" | #include "DEG_depsgraph.h" | ||||
| #include "DEG_depsgraph_build.h" | #include "DEG_depsgraph_build.h" | ||||
| #include "ED_keyframing.h" | #include "ED_keyframing.h" | ||||
| #include "ED_outliner.h" | #include "ED_outliner.h" | ||||
| ▲ Show 20 Lines • Show All 1,200 Lines • ▼ Show 20 Lines | static TreeElement *outliner_show_active_get_element(bContext *C, | ||||
| te = outliner_find_id(space_outliner, &space_outliner->tree, &obact->id); | te = outliner_find_id(space_outliner, &space_outliner->tree, &obact->id); | ||||
| if (te != NULL && obact->type == OB_ARMATURE) { | if (te != NULL && obact->type == OB_ARMATURE) { | ||||
| /* traverse down the bone hierarchy in case of armature */ | /* traverse down the bone hierarchy in case of armature */ | ||||
| TreeElement *te_obact = te; | TreeElement *te_obact = te; | ||||
| if (obact->mode & OB_MODE_POSE) { | if (obact->mode & OB_MODE_POSE) { | ||||
| bPoseChannel *pchan = CTX_data_active_pose_bone(C); | Object *obpose = BKE_object_pose_armature_get(obact); | ||||
| bPoseChannel *pchan = BKE_pose_channel_active(obpose, false); | |||||
| if (pchan) { | if (pchan) { | ||||
| te = outliner_find_posechannel(&te_obact->subtree, pchan); | te = outliner_find_posechannel(&te_obact->subtree, pchan); | ||||
| } | } | ||||
| } | } | ||||
| else if (obact->mode & OB_MODE_EDIT) { | else if (obact->mode & OB_MODE_EDIT) { | ||||
| EditBone *ebone = CTX_data_active_bone(C); | EditBone *ebone = CTX_data_active_bone(C); | ||||
| if (ebone) { | if (ebone) { | ||||
| te = outliner_find_editbone(&te_obact->subtree, ebone); | te = outliner_find_editbone(&te_obact->subtree, ebone); | ||||
| ▲ Show 20 Lines • Show All 1,083 Lines • Show Last 20 Lines | |||||