Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-06-25 21:26:14 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-06-25 21:29:51 +0300
commit4aee5543457b365f81bc156e3de4ebedbc6c4a01 (patch)
tree12338b03c063198ecc0e320e95b5a63e3f23ce2b /source/blender/editors/space_image
parent9e88892f8f8a6dfa6092d87f0080f747233142e9 (diff)
Fix crash with files saved with missing render slots.
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r--source/blender/editors/space_image/image_buttons.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/image_buttons.c b/source/blender/editors/space_image/image_buttons.c
index 7236a99ad80..9475c159653 100644
--- a/source/blender/editors/space_image/image_buttons.c
+++ b/source/blender/editors/space_image/image_buttons.c
@@ -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 {