Fix T76179: Unable to select render passes when a render has fewer
passes than one in another slot If a particular pass is not available in a slot we are switching to, still show the menu, but with a blank name for the currently selected item so that the user can change it to a valid value. thx @brecht for providing the standard way Blender deals with these kinds of situations. Maniphest Tasks: T76179 Differential Revision: https://developer.blender.org/D7552
This commit is contained in:
parent
37e08e526c
commit
475bd6b829
Notes:
blender-bot
2023-02-14 00:57:33 +01:00
Referenced by commit839fe335d2
, Fix crash after475bd6b
occuring on each render end, we need another nullcheck here Referenced by commit3ea67e08fe
, Fix crash after475bd6b
occuring on each render end, we need another nullcheck here Referenced by issue #76214, Compositor crash in Blender 2.83 latest build Referenced by issue #76179, Unable to select render passes when a render has fewer passes than one in another slot
|
@ -656,8 +656,8 @@ static void uiblock_layer_pass_buttons(
|
|||
/* pass */
|
||||
rpass = (rl ? BLI_findlink(&rl->passes, iuser->pass) : NULL);
|
||||
|
||||
if (rpass && RE_passes_have_name(rl)) {
|
||||
display_name = rpass->name;
|
||||
if (RE_passes_have_name(rl)) {
|
||||
display_name = rpass ? rpass->name : "";
|
||||
rnd_pt = ui_imageuser_data_copy(&rnd_pt_local);
|
||||
but = uiDefMenuBut(block,
|
||||
ui_imageuser_pass_menu,
|
||||
|
|
Loading…
Reference in New Issue