diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-08-27 08:00:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-27 08:00:15 +0200 |
commit | a543c689594c2cdb4de18c4a98d74ef520e0b8c5 (patch) | |
tree | 2527b3d92dac94e3f608ead9bd4fd64dfc77b7cf | |
parent | 98cc2ce1dd62947e240f61d61b995328b73fca6a (diff) | |
parent | 02d3d4c2ce2edf207691c676e5f0759046f2f087 (diff) |
Merge pull request #21466 from elasota/fix-layered-texture-import
Fix crash when importing layered textures
-rw-r--r-- | editor/import/resource_importer_layered_texture.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/import/resource_importer_layered_texture.cpp b/editor/import/resource_importer_layered_texture.cpp index 211bb7bcc9..db16f20ade 100644 --- a/editor/import/resource_importer_layered_texture.cpp +++ b/editor/import/resource_importer_layered_texture.cpp @@ -52,6 +52,7 @@ String ResourceImporterLayeredTexture::get_preset_name(int p_idx) const { void ResourceImporterLayeredTexture::get_import_options(List<ImportOption> *r_options, int p_preset) const { r_options->push_back(ImportOption(PropertyInfo(Variant::INT, "compress/mode", PROPERTY_HINT_ENUM, "Lossless,Video RAM,Uncompressed", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED), p_preset == PRESET_3D ? 1 : 0)); + r_options->push_back(ImportOption(PropertyInfo(Variant::BOOL, "compress/no_bptc_if_rgb"), false)); r_options->push_back(ImportOption(PropertyInfo(Variant::INT, "flags/repeat", PROPERTY_HINT_ENUM, "Disabled,Enabled,Mirrored"), 0)); r_options->push_back(ImportOption(PropertyInfo(Variant::BOOL, "flags/filter"), true)); r_options->push_back(ImportOption(PropertyInfo(Variant::BOOL, "flags/mipmaps"), p_preset == PRESET_COLOR_CORRECT ? 0 : 1)); |