Fix T100142: Compare correct render_slot variable during clear operation

In {rB0ef8a6179d2a773b2570352bd0cb7eb18b666da2} the parameter name was
changed to match the header declaration (slot) but it missed updating
the variable name inside the function correctly in one instance.

This prevents slot 0 from being cleared if the last slot to be rendered
was not also 0.

Differential Revision: https://developer.blender.org/D15620
This commit is contained in:
Jesse Yurkovich 2022-08-04 19:41:03 -07:00
parent bae2ce0695
commit bd467100dd
Notes: blender-bot 2023-02-14 03:44:41 +01:00
Referenced by issue #100142, Regression: Clear Render Slot not working for first slot
1 changed files with 1 additions and 1 deletions

View File

@ -5516,7 +5516,7 @@ bool BKE_image_clear_renderslot(Image *ima, ImageUser *iuser, int slot)
}
RenderSlot *render_slot = static_cast<RenderSlot *>(BLI_findlink(&ima->renderslots, slot));
if (!slot) {
if (!render_slot) {
return false;
}
if (render_slot->render) {