mirror of
https://github.com/Relintai/texture_packer.git
synced 2024-11-12 10:15:16 +01:00
Fix small mistake.
This commit is contained in:
parent
87a80781a0
commit
4de8140563
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user