Fix mixed weight-paint & pose mode
[blender.git] / source / blender / draw / modes / pose_mode.c
index 1589ff39bdfcc54c40b1b63911ebcace2598f723..749c3e71368bbf2f0bf74b87cb74bf4f865b5849 100644 (file)
@@ -145,7 +145,7 @@ bool DRW_pose_mode_armature(Object *ob, Object *active_ob)
 
        /* Armature parent is also handled by pose mode engine. */
        if ((active_ob != NULL) && ((draw_ctx->object_mode & OB_MODE_WEIGHT_PAINT) != 0)) {
-               if (active_ob->parent == ob) {
+               if (ob == draw_ctx->object_pose) {
                        return true;
                }
        }