diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-05-17 04:03:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-05-17 04:03:09 +0300 |
commit | 2f6bc538742da1147619a60c6245d6697bd4d057 (patch) | |
tree | 6c6d02a628465f8528bc4d1e504facae3b32e108 /source/blender/draw/modes/pose_mode.c | |
parent | 8adec78ca574f09242aa4588ad04f498f1e074aa (diff) |
DWM: Add obact for convenience
Modes often need to check if the object is the active one.
Diffstat (limited to 'source/blender/draw/modes/pose_mode.c')
-rw-r--r-- | source/blender/draw/modes/pose_mode.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/draw/modes/pose_mode.c b/source/blender/draw/modes/pose_mode.c index 19ec4057bb5..b83f78d8896 100644 --- a/source/blender/draw/modes/pose_mode.c +++ b/source/blender/draw/modes/pose_mode.c @@ -109,16 +109,15 @@ static void POSE_cache_populate(void *vedata, Object *ob) POSE_PassList *psl = ((POSE_Data *)vedata)->psl; POSE_StorageList *stl = ((POSE_Data *)vedata)->stl; const DRWContextState *draw_ctx = DRW_context_state_get(); - SceneLayer *sl = draw_ctx->sl; /* In the future this will allow us to implement face manipulators, * and similar functionalities. For now we handle only pose bones. */ if (ob->type == OB_ARMATURE) { - if (DRW_pose_mode_armature(ob, OBACT_NEW)) { + if (DRW_pose_mode_armature(ob, draw_ctx->obact)) { DRW_shgroup_armature_pose( - ob, psl->bone_solid, psl->bone_wire, - stl->g_data->relationship_lines); + ob, psl->bone_solid, psl->bone_wire, + stl->g_data->relationship_lines); } } } |