Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_select.c
| Show All 40 Lines | |||||
| #include "DNA_world_types.h" | #include "DNA_world_types.h" | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BLI_listbase.h" | #include "BLI_listbase.h" | ||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "BKE_depsgraph.h" | #include "BKE_depsgraph.h" | ||||
| #include "BKE_object.h" | #include "BKE_object.h" | ||||
| #include "BKE_layer.h" | |||||
| #include "BKE_scene.h" | #include "BKE_scene.h" | ||||
| #include "BKE_sequencer.h" | #include "BKE_sequencer.h" | ||||
| #include "BKE_armature.h" | #include "BKE_armature.h" | ||||
| #include "ED_armature.h" | #include "ED_armature.h" | ||||
| #include "ED_object.h" | #include "ED_object.h" | ||||
| #include "ED_screen.h" | #include "ED_screen.h" | ||||
| #include "ED_sequencer.h" | #include "ED_sequencer.h" | ||||
| ▲ Show 20 Lines • Show All 593 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| // XXX removed | // XXX removed | ||||
| return OL_DRAWSEL_NONE; | return OL_DRAWSEL_NONE; | ||||
| } | } | ||||
| static eOLDrawState tree_element_active_pose( | static eOLDrawState tree_element_active_pose( | ||||
| bContext *C, Scene *scene, TreeElement *UNUSED(te), TreeStoreElem *tselem, const eOLSetState set) | bContext *C, Scene *scene, TreeElement *UNUSED(te), TreeStoreElem *tselem, const eOLSetState set) | ||||
| { | { | ||||
| TODO_LAYER_CONTEXT; /* we may need to pass SceneLayer instead of Scene here */ | |||||
| SceneLayer *sl = CTX_data_scene_layer(C); | |||||
| Object *ob = (Object *)tselem->id; | Object *ob = (Object *)tselem->id; | ||||
| Base *base = BKE_scene_base_find(scene, ob); | ObjectBase *base = BKE_scene_layer_base_find(sl, ob); | ||||
| if (set != OL_SETSEL_NONE) { | if (set != OL_SETSEL_NONE) { | ||||
| if (scene->obedit) | if (scene->obedit) | ||||
| ED_object_editmode_exit(C, EM_FREEDATA | EM_FREEUNDO | EM_WAITCURSOR | EM_DO_UNDO); | ED_object_editmode_exit(C, EM_FREEDATA | EM_FREEUNDO | EM_WAITCURSOR | EM_DO_UNDO); | ||||
| if (ob->mode & OB_MODE_POSE) | if (ob->mode & OB_MODE_POSE) | ||||
| ED_armature_exit_posemode(C, base); | ED_armature_exit_posemode(C, base); | ||||
| else | else | ||||
| ▲ Show 20 Lines • Show All 415 Lines • Show Last 20 Lines | |||||