UI: Nicer report when trying to edit external libraries
authorPablo Vazquez <contact@pablovazquez.art>
Tue, 5 Mar 2019 16:06:11 +0000 (17:06 +0100)
committerPablo Vazquez <contact@pablovazquez.art>
Tue, 5 Mar 2019 16:06:11 +0000 (17:06 +0100)
Rename 'libdata' to 'library data'.

source/blender/editors/interface/interface_templates.c
source/blender/editors/object/object_add.c
source/blender/editors/space_outliner/outliner_edit.c
source/blender/editors/space_text/text_ops.c

index 0d2a7248a2edf3bde0a54cf808fe5c2a51d470ab..1d79832f88fb62a86d8b64e7e07e6c2e1c803320 100644 (file)
@@ -1323,7 +1323,7 @@ void uiTemplatePathBuilder(
 
 /************************ Modifier Template *************************/
 
-#define ERROR_LIBDATA_MESSAGE IFACE_("Can't edit external libdata")
+#define ERROR_LIBDATA_MESSAGE IFACE_("Can't edit external library data")
 
 static void modifiers_convertToReal(bContext *C, void *ob_v, void *md_v)
 {
index 23fc8109043cdd9b257bb61435d68a60bf939ee0..0e6505ab712ff4bbd92364ff03fab51e77127219 100644 (file)
@@ -2444,7 +2444,7 @@ static int join_exec(bContext *C, wmOperator *op)
                return OPERATOR_CANCELLED;
        }
        else if (BKE_object_obdata_is_libdata(ob)) {
-               BKE_report(op->reports, RPT_ERROR, "Cannot edit external libdata");
+               BKE_report(op->reports, RPT_ERROR, "Cannot edit external library data");
                return OPERATOR_CANCELLED;
        }
        else if (ob->type == OB_GPENCIL) {
@@ -2506,7 +2506,7 @@ static int join_shapes_exec(bContext *C, wmOperator *op)
                return OPERATOR_CANCELLED;
        }
        else if (BKE_object_obdata_is_libdata(ob)) {
-               BKE_report(op->reports, RPT_ERROR, "Cannot edit external libdata");
+               BKE_report(op->reports, RPT_ERROR, "Cannot edit external library data");
                return OPERATOR_CANCELLED;
        }
 
index 3742a1ad912269f389e2f8d60905fa2685735f93..a96d5ad183fbb3c93f649b14c9beee4ede902b5b 100644 (file)
@@ -268,7 +268,7 @@ static void do_item_rename(ARegion *ar, TreeElement *te, TreeStoreElem *tselem,
                }
        }
        else if (ID_IS_LINKED(tselem->id)) {
-               BKE_report(reports, RPT_WARNING, "Cannot edit external libdata");
+               BKE_report(reports, RPT_WARNING, "Cannot edit external library data");
        }
        else if (te->idcode == ID_LI && ((Library *)tselem->id)->parent) {
                BKE_report(reports, RPT_WARNING, "Cannot edit the path of an indirectly linked library");
index c2f3be0d881422c30a40dc24675174b47618eefa..563aacafc50511a249960caccc5e17e0e54030b9 100644 (file)
@@ -84,7 +84,7 @@ static bool text_edit_poll(bContext *C)
                return 0;
 
        if (ID_IS_LINKED(text)) {
-               // BKE_report(op->reports, RPT_ERROR, "Cannot edit external libdata");
+               // BKE_report(op->reports, RPT_ERROR, "Cannot edit external library data");
                return 0;
        }
 
@@ -100,7 +100,7 @@ bool text_space_edit_poll(bContext *C)
                return 0;
 
        if (ID_IS_LINKED(text)) {
-               // BKE_report(op->reports, RPT_ERROR, "Cannot edit external libdata");
+               // BKE_report(op->reports, RPT_ERROR, "Cannot edit external library data");
                return 0;
        }
 
@@ -120,7 +120,7 @@ static bool text_region_edit_poll(bContext *C)
                return 0;
 
        if (ID_IS_LINKED(text)) {
-               // BKE_report(op->reports, RPT_ERROR, "Cannot edit external libdata");
+               // BKE_report(op->reports, RPT_ERROR, "Cannot edit external library data");
                return 0;
        }