Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / sculpt_paint / paint_vertex.c
index 7a0c69996233b89486c6170f336eecb6a2cc8ea5..d9df8c78ba97ece891a78b97363a18ed18f1b201 100644 (file)
@@ -1115,7 +1115,7 @@ static int paint_poll_test(bContext *C)
        Object *ob = CTX_data_active_object(C);
        if (ob == NULL || ob->type != OB_MESH)
                return 0;
-       if (!ob->data || ID_IS_LINKED_DATABLOCK(ob->data))
+       if (!ob->data || ID_IS_LINKED(ob->data))
                return 0;
        if (CTX_data_edit_object(C))
                return 0;