[Bf-blender-cvs] [4aee5543457] blender2.8: Fix crash with files saved with missing render slots.

Brecht Van Lommel noreply at git.blender.org
Mon Jun 25 20:29:57 CEST 2018


Commit: 4aee5543457b365f81bc156e3de4ebedbc6c4a01
Author: Brecht Van Lommel
Date:   Mon Jun 25 20:26:14 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB4aee5543457b365f81bc156e3de4ebedbc6c4a01

Fix crash with files saved with missing render slots.

===================================================================

M	source/blender/editors/space_image/image_buttons.c

===================================================================

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 {



More information about the Bf-blender-cvs mailing list