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

@ -1 +1 @@
Subproject commit 1d9b8b2ffa67a8832073acf316150b2dfaa2db02
Subproject commit 0fd21a7cc382066d184fda8153f925bb825af2c6

@ -1 +1 @@
Subproject commit 47a32a5370d36942674621e5a03e57e8dd4986d8
Subproject commit 9a9832d5d7fe61a446516f2e2722f8356bd7e709

@ -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;
}