Outliner Override: Tweak to order of error messages.

This commit is contained in:
Bastien Montagne 2021-04-07 16:40:52 +02:00
parent 92dfc8f267
commit 89e353354f
1 changed files with 7 additions and 8 deletions

View File

@ -1795,20 +1795,19 @@ static bool outliner_draw_overrides_buts(uiBlock *block,
case TSE_LIBRARY_OVERRIDE_BASE: {
ID *id = tselem->id;
if (ID_IS_OVERRIDE_LIBRARY_REAL(id) && ID_REAL_USERS(id) == 0) {
item_has_warnings = true;
if (do_draw) {
tip = TIP_("This override data-block is unused");
}
}
else if (id->flag & LIB_LIB_OVERRIDE_RESYNC_LEFTOVER) {
if (id->flag & LIB_LIB_OVERRIDE_RESYNC_LEFTOVER) {
item_has_warnings = true;
if (do_draw) {
tip = TIP_(
"This override data-block is not needed anymore, but was detected as user-edited");
}
}
else if (ID_IS_OVERRIDE_LIBRARY_REAL(id) && ID_REAL_USERS(id) == 0) {
item_has_warnings = true;
if (do_draw) {
tip = TIP_("This override data-block is unused");
}
}
break;
}
case TSE_LIBRARY_OVERRIDE: {