Fix T42548: crash showing subsurf modifier UI on hidden object.

This commit is contained in:
Brecht Van Lommel 2014-11-09 14:52:52 +01:00
parent 8f8e1dd8f7
commit a1c1ec86d9
Notes: blender-bot 2023-02-14 09:50:42 +01:00
Referenced by issue #42548, Selecting a certain object in the outliner causes Blender to crash
1 changed files with 1 additions and 0 deletions

View File

@ -863,6 +863,7 @@ static uiLayout *draw_modifier(uiLayout *layout, Scene *scene, Object *ob,
uiBlockSetEmboss(block, UI_EMBOSS);
/* modifier name */
md->scene = scene;
if (mti->isDisabled && mti->isDisabled(md, 0)) {
uiLayoutSetRedAlert(row, true);
}