[Texture Import] Fix invert color

This commit is contained in:
Guilherme Felipe 2018-09-02 10:13:19 -03:00
parent 457108924f
commit 4356af2a68

View file

@ -431,8 +431,8 @@ Error ResourceImporterTexture::import(const String &p_source_file, const String
int width = image->get_width();
image->lock();
for (int i = 0; i < height; i++) {
for (int j = 0; j < width; j++) {
for (int i = 0; i < width; i++) {
for (int j = 0; j < height; j++) {
image->set_pixel(i, j, image->get_pixel(i, j).inverted());
}
}