Fix mixed weight-paint & pose mode
[blender.git] / source / blender / draw / intern / draw_armature.c
index 5daafadada61299a5b464a659efc8d3dd0bf419a..c14fe70e0c35233a23c3f8afd9c94a81915cb518 100644 (file)
@@ -1310,7 +1310,7 @@ static void draw_armature_pose(Object *ob, const float const_color[4])
        {
                const DRWContextState *draw_ctx = DRW_context_state_get();
 
-               if (draw_ctx->object_mode & OB_MODE_POSE) {
+               if ((draw_ctx->object_mode & OB_MODE_POSE) || (ob == draw_ctx->object_pose)) {
                        arm->flag |= ARM_POSEMODE;
                }