Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / sculpt_paint / paint_image.c
index 580e42e5974b30e57ae74428e5fba2819e91d48b..31d4ede382d9d265c79dff5acda85bcefe18870e 100644 (file)
@@ -1364,7 +1364,7 @@ static int texture_paint_toggle_poll(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;