Merge pull request #21694 from guilhermefelipecgs/fix_invert_color
[Texture Import] Fix invert color
This commit is contained in:
commit
cdbc172a55
|
@ -431,8 +431,8 @@ Error ResourceImporterTexture::import(const String &p_source_file, const String
|
||||||
int width = image->get_width();
|
int width = image->get_width();
|
||||||
|
|
||||||
image->lock();
|
image->lock();
|
||||||
for (int i = 0; i < height; i++) {
|
for (int i = 0; i < width; i++) {
|
||||||
for (int j = 0; j < width; j++) {
|
for (int j = 0; j < height; j++) {
|
||||||
image->set_pixel(i, j, image->get_pixel(i, j).inverted());
|
image->set_pixel(i, j, image->get_pixel(i, j).inverted());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue