Fix crash with files saved with missing render slots.

This commit is contained in:
Brecht Van Lommel 2018-06-25 20:26:14 +02:00
parent 9e88892f8f
commit 4aee554345
1 changed files with 1 additions and 1 deletions

View File

@ -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 {