Fix crash with files saved with missing render slots.
This commit is contained in:
@@ -710,7 +710,7 @@ static void uiblock_layer_pass_buttons(
|
||||
if (render_slot) {
|
||||
char str[64];
|
||||
RenderSlot *slot = BKE_image_get_renderslot(image, *render_slot);
|
||||
if (slot->name[0] != '\0') {
|
||||
if (slot && slot->name[0] != '\0') {
|
||||
BLI_strncpy(str, slot->name, sizeof(str));
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user