Fix T76375: UDIM Rectangular Tiled Image EEVEE freezes Blender

When packing the image the height of the tile was checked to the width
of the packing area. This resulted that the tile was ignored.

Reviewed By: Clément Foucault

Differential Revision: https://developer.blender.org/D7784
This commit is contained in:
Jeroen Bakker
2020-05-19 15:20:09 +02:00
committed by Jeroen Bakker
parent a6646fb0d0
commit 9ac4e4a1c7
3 changed files with 3 additions and 3 deletions

View File

@@ -705,7 +705,7 @@ void BLI_box_pack_2d_fixedarea(ListBase *boxes, int width, int height, ListBase
LISTBASE_FOREACH_MUTABLE (FixedSizeBoxPack *, box, boxes) {
LISTBASE_FOREACH (FixedSizeBoxPack *, space, &spaces) {
/* Skip this space if it's too small. */
if (box->w > space->w || box->h > space->w) {
if (box->w > space->w || box->h > space->h) {
continue;
}