summaryrefslogtreecommitdiff
path: root/editor/import
diff options
context:
space:
mode:
authorAnilforextra <anilforextra@gmail.com>2021-08-13 12:22:38 +0545
committerAnilforextra <anilforextra@gmail.com>2021-08-13 12:22:38 +0545
commitd73d8b8d78f4301705f64993edb8701ca5208902 (patch)
tree148ff5600efea25fec674375d0b5a3607b36f33b /editor/import
parenta98589a4497bdff15c66a98b6d07241addddae2c (diff)
Fix duplicate conditions.
Diffstat (limited to 'editor/import')
-rw-r--r--editor/import/resource_importer_layered_texture.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/editor/import/resource_importer_layered_texture.cpp b/editor/import/resource_importer_layered_texture.cpp
index 2ac8b8bd7d..d5bb21443c 100644
--- a/editor/import/resource_importer_layered_texture.cpp
+++ b/editor/import/resource_importer_layered_texture.cpp
@@ -341,10 +341,7 @@ Error ResourceImporterLayeredTexture::import(const String &p_source_file, const
if (compress_mode == COMPRESS_VRAM_COMPRESSED) {
mipmaps = true;
- }
- //optimize
- if (compress_mode == COMPRESS_VRAM_COMPRESSED) {
//if using video ram, optimize
if (channel_pack == 0) {
//remove alpha if not needed, so compression is more efficient