summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2017-08-01 00:40:43 -0300
committerGitHub <noreply@github.com>2017-08-01 00:40:43 -0300
commit168cb8c94b230e487bdd2ff5cf82eec3d303240c (patch)
treea96f714ebd7e07f226905c414ebeb0895cd2f6ab
parent85088275c5e6db63755e8dfd23d5f53d2d5c96ef (diff)
parentc082f4134f21baeb8a1b193e71c9d0ca896f5b8a (diff)
Merge pull request #10008 from RandomShaper/fix-misplaced-operator
Fix equality when assignment intended
-rw-r--r--editor/import/resource_importer_texture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/import/resource_importer_texture.cpp b/editor/import/resource_importer_texture.cpp
index 98020ed9b8..c0c507c2d6 100644
--- a/editor/import/resource_importer_texture.cpp
+++ b/editor/import/resource_importer_texture.cpp
@@ -236,7 +236,7 @@ void ResourceImporterTexture::_save_stex(const Ref<Image> &p_image, const String
format |= StreamTexture::FORMAT_BIT_DETECT_NORMAL;
if ((p_compress_mode == COMPRESS_LOSSLESS || p_compress_mode == COMPRESS_LOSSY) && p_image->get_format() > Image::FORMAT_RGBA8) {
- p_compress_mode == COMPRESS_UNCOMPRESSED; //these can't go as lossy
+ p_compress_mode = COMPRESS_UNCOMPRESSED; //these can't go as lossy
}
switch (p_compress_mode) {