Fix small mistake.

This commit is contained in:
Relintai 2019-10-21 23:25:51 +02:00
parent 87a80781a0
commit 4de8140563

View File

@ -235,7 +235,6 @@ void TexturePacker::merge() {
int rect_pos_x = 0;
int rect_pos_y = 0;
int img_width = otext->get_size().x;
if (aotext.is_valid()) {
otext = aotext->get_atlas();
@ -252,6 +251,8 @@ void TexturePacker::merge() {
ERR_CONTINUE(!img.is_valid());
int img_width = img->get_size().x;
PoolByteArray image_data = img->get_data();
for (int y = 0; y < r->h; ++y) {