Restore red name for disabled modifiers.

Don't know when this was lost, 2.70a already did not have it... :/
This commit is contained in:
Bastien Montagne 2014-08-20 20:25:58 +02:00
parent 7a36251bc9
commit 968389d7b6
1 changed files with 4 additions and 0 deletions

View File

@ -853,7 +853,11 @@ static uiLayout *draw_modifier(uiLayout *layout, Scene *scene, Object *ob,
uiBlockSetEmboss(block, UI_EMBOSS);
/* modifier name */
if (mti->isDisabled && mti->isDisabled(md, 0)) {
uiLayoutSetRedAlert(row, true);
}
uiItemR(row, &ptr, "name", 0, "", ICON_NONE);
uiLayoutSetRedAlert(row, false);
/* mode enabling buttons */
uiBlockBeginAlign(block);