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:
@@ -656,8 +656,8 @@ static void uiblock_layer_pass_buttons(
|
|||||||
/* pass */
|
/* pass */
|
||||||
rpass = (rl ? BLI_findlink(&rl->passes, iuser->pass) : NULL);
|
rpass = (rl ? BLI_findlink(&rl->passes, iuser->pass) : NULL);
|
||||||
|
|
||||||
if (rpass && RE_passes_have_name(rl)) {
|
if (RE_passes_have_name(rl)) {
|
||||||
display_name = rpass->name;
|
display_name = rpass ? rpass->name : "";
|
||||||
rnd_pt = ui_imageuser_data_copy(&rnd_pt_local);
|
rnd_pt = ui_imageuser_data_copy(&rnd_pt_local);
|
||||||
but = uiDefMenuBut(block,
|
but = uiDefMenuBut(block,
|
||||||
ui_imageuser_pass_menu,
|
ui_imageuser_pass_menu,
|
||||||
|
|||||||
Reference in New Issue
Block a user