diff options
author | Guilherme Felipe <guilhermefelipecgs@gmail.com> | 2018-09-02 10:13:19 -0300 |
---|---|---|
committer | Guilherme Felipe <guilhermefelipecgs@gmail.com> | 2018-09-02 11:35:48 -0300 |
commit | 4356af2a68998d19396e785ee0c9220dced37ab6 (patch) | |
tree | a6f3b28418ca601f787b91da5915a77adfabb834 /editor/import | |
parent | 457108924f499b22df2438f12621a1aadbd240f1 (diff) |
[Texture Import] Fix invert color
Diffstat (limited to 'editor/import')
-rw-r--r-- | editor/import/resource_importer_texture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/import/resource_importer_texture.cpp b/editor/import/resource_importer_texture.cpp index 2a25c08f26..af2615f9cf 100644 --- a/editor/import/resource_importer_texture.cpp +++ b/editor/import/resource_importer_texture.cpp @@ -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()); } } |