Fix crash after 475bd6b occuring on each render end, we need another nullcheck here

This commit is contained in:
Jens Verwiebe
2020-04-28 23:49:52 +02:00
parent cec9dbc997
commit 3ea67e08fe

View File

@@ -656,7 +656,7 @@ static void uiblock_layer_pass_buttons(
/* pass */
rpass = (rl ? BLI_findlink(&rl->passes, iuser->pass) : NULL);
if (RE_passes_have_name(rl)) {
if (rl && RE_passes_have_name(rl)) {
display_name = rpass ? rpass->name : "";
rnd_pt = ui_imageuser_data_copy(&rnd_pt_local);
but = uiDefMenuBut(block,