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
@ -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
Block a user