Fix crash with files saved with missing render slots.
This commit is contained in:
parent
9e88892f8f
commit
4aee554345
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue