Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / space_text / text_ops.c
index 2a0c350ba54a4f4a3806660a07d2d48cc34ce9b8..772cd6bd41986bf6c1d0276ce4e7998c0903cab7 100644 (file)
@@ -92,7 +92,7 @@ static int text_edit_poll(bContext *C)
        if (!text)
                return 0;
 
-       if (ID_IS_LINKED_DATABLOCK(text)) {
+       if (ID_IS_LINKED(text)) {
                // BKE_report(op->reports, RPT_ERROR, "Cannot edit external libdata");
                return 0;
        }
@@ -108,7 +108,7 @@ int text_space_edit_poll(bContext *C)
        if (!st || !text)
                return 0;
 
-       if (ID_IS_LINKED_DATABLOCK(text)) {
+       if (ID_IS_LINKED(text)) {
                // BKE_report(op->reports, RPT_ERROR, "Cannot edit external libdata");
                return 0;
        }
@@ -128,7 +128,7 @@ static int text_region_edit_poll(bContext *C)
        if (!ar || ar->regiontype != RGN_TYPE_WINDOW)
                return 0;
 
-       if (ID_IS_LINKED_DATABLOCK(text)) {
+       if (ID_IS_LINKED(text)) {
                // BKE_report(op->reports, RPT_ERROR, "Cannot edit external libdata");
                return 0;
        }