Allow using SVG images as project icon

Since exporters will save their own icon, the target platforms
don't have to support SVG to display the icon correctly.

This closes #23068.
This commit is contained in:
Hugo Locurcio 2020-11-06 23:05:29 +01:00
parent dfed88b11f
commit 0f9432f060
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C

View file

@ -1608,7 +1608,7 @@ Error Main::setup2(Thread::ID p_main_tid_override) {
GLOBAL_DEF("application/config/icon", String());
ProjectSettings::get_singleton()->set_custom_property_info("application/config/icon",
PropertyInfo(Variant::STRING, "application/config/icon",
PROPERTY_HINT_FILE, "*.png,*.webp"));
PROPERTY_HINT_FILE, "*.png,*.webp,*.svg,*.svgz"));
GLOBAL_DEF("application/config/macos_native_icon", String());
ProjectSettings::get_singleton()->set_custom_property_info("application/config/macos_native_icon",