Commit: 34f6a9943333f4b6c9727efb5db7bca1ffc7c531
Author: Jeroen Bakker
Date: Tue Mar 1 08:56:58 2022 +0100
Branches: blender-v3.1-release
https://developer.blender.org/rB34f6a9943333f4b6c9727efb5db7bca1ffc7c531
Fix crash triggered by an introduced assert.
===================================================================
M source/blender/imbuf/intern/divers.c
===================================================================
diff --git a/source/blender/imbuf/intern/divers.c
b/source/blender/imbuf/intern/divers.c
index c4de30660e2..5b4b731027d 100644
--- a/source/blender/imbuf/intern/divers.c
+++ b/source/blender/imbuf/intern/divers.c
@@ -784,9 +784,9 @@ void IMB_float_from_rect_ex(struct ImBuf *dst,
"Region to update should be clipped to the given buffers.");
BLI_assert_msg(region_to_update->ymin >= 0,
"Region to update should be clipped to the given buffers.");
- BLI_assert_msg(region_to_update->xmax < dst->x,
+ BLI_assert_msg(region_to_update->xmax <= dst->x,
"Region to update should be clipped to the given buffers.");
- BLI_assert_msg(region_to_update->ymax < dst->y,
+ BLI_assert_msg(region_to_update->ymax <= dst->y,
"Region to update should be clipped to the given buffers.");
float *rect_float = dst->rect_float;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs