[Bf-blender-cvs] [2c8bd1d8cb6] blender2.7: Fix T61053: crash baking to float image after file save.

Brecht Van Lommel noreply at git.blender.org
Mon Mar 11 14:34:04 CET 2019


Commit: 2c8bd1d8cb6dc0f1a182d77c6b8283b25a01f1eb
Author: Brecht Van Lommel
Date:   Mon Mar 11 11:09:14 2019 +0100
Branches: blender2.7
https://developer.blender.org/rB2c8bd1d8cb6dc0f1a182d77c6b8283b25a01f1eb

Fix T61053: crash baking to float image after file save.

This is the wrong flag to check, no other code actually reads it.

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

M	source/blender/editors/object/object_bake_api.c

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

diff --git a/source/blender/editors/object/object_bake_api.c b/source/blender/editors/object/object_bake_api.c
index 97a507cc27b..ddf59590734 100644
--- a/source/blender/editors/object/object_bake_api.c
+++ b/source/blender/editors/object/object_bake_api.c
@@ -187,7 +187,7 @@ static bool write_internal_bake_pixels(
 		RE_bake_mask_fill(pixel_array, num_pixels, mask_buffer);
 	}
 
-	is_float = (ibuf->flags & IB_rectfloat);
+	is_float = (ibuf->rect_float != NULL);
 
 	/* colormanagement conversions */
 	if (!is_noncolor) {



More information about the Bf-blender-cvs mailing list