Fix T42548: crash showing subsurf modifier UI on hidden object.
This commit is contained in:
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
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue