From ad60d40ed36d44f0f8569239ea58d8151afa60aa Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 4 Sep 2023 15:50:18 +0200 Subject: [PATCH] Cleanup: Move 'uneditable' info message about item renaming in Outliner to `INFO`. These are not actually warnings, but merely info for the user. NOTE: A good chunk of these messages are aguably useless actually, saying 'you cannot rename this' does not add any info for the user... Better/more informative wording (or removal) of some of these messages is left for later. --- .../editors/space_outliner/outliner_edit.cc | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/source/blender/editors/space_outliner/outliner_edit.cc b/source/blender/editors/space_outliner/outliner_edit.cc index 397fa355615..f1d1e4e5991 100644 --- a/source/blender/editors/space_outliner/outliner_edit.cc +++ b/source/blender/editors/space_outliner/outliner_edit.cc @@ -306,7 +306,10 @@ static void do_item_rename(ARegion *region, { bool add_textbut = false; - /* can't rename rna datablocks entries or listbases */ + /* FIXME: These info messages are often useless, they should be either reworded to be more + * informative for the user, or purely removed? */ + + /* Can't rename rna datablocks entries or listbases. */ if (ELEM(tselem->type, TSE_ANIM_DATA, TSE_NLA, @@ -326,37 +329,29 @@ static void do_item_rename(ARegion *region, TSE_ID_BASE) || ELEM(tselem->type, TSE_SCENE_OBJECTS_BASE, TSE_GENERIC_LABEL)) { - BKE_report(reports, RPT_WARNING, "Not an editable name"); + BKE_report(reports, RPT_INFO, "Not an editable name"); } else if (ELEM(tselem->type, TSE_SEQUENCE, TSE_SEQ_STRIP, TSE_SEQUENCE_DUP)) { - BKE_report(reports, RPT_WARNING, "Sequence names are not editable from the Outliner"); + BKE_report(reports, RPT_INFO, "Sequence names are not editable from the Outliner"); } else if (TSE_IS_REAL_ID(tselem) && ID_IS_LINKED(tselem->id)) { - BKE_report(reports, RPT_WARNING, "External library data is not editable"); + BKE_report(reports, RPT_INFO, "External library data is not editable"); } else if (TSE_IS_REAL_ID(tselem) && ID_IS_OVERRIDE_LIBRARY(tselem->id)) { - BKE_report(reports, RPT_WARNING, "Overridden data-blocks are not editable"); + BKE_report(reports, RPT_INFO, "Overridden data-blocks names are not editable"); } else if (outliner_is_collection_tree_element(te)) { Collection *collection = outliner_collection_from_tree_element(te); if (collection->flag & COLLECTION_IS_MASTER) { - BKE_report(reports, RPT_WARNING, "Not an editable name"); + BKE_report(reports, RPT_INFO, "Not an editable name"); } else { add_textbut = true; } } else if (te->idcode == ID_LI) { - if (reinterpret_cast(tselem->id)->parent) { - BKE_report(reports, RPT_WARNING, "Cannot edit the path of an indirectly linked library"); - } - else { - BKE_report( - reports, - RPT_WARNING, - "Library path is not editable from here anymore, use the Relocate operation instead"); - } + BKE_report(reports, RPT_INFO, "Library path is not editable, use the Relocate operation"); } else { add_textbut = true;