Show svg import options in default settings.
Fixes: #63840 Importers can export options conditional based on the resource path. If an empty path is passed (as by the editor settings) filtering should not be done.
This commit is contained in:
parent
bbac8198f8
commit
e87c9fc48c
@ -233,7 +233,8 @@ void ResourceImporterTexture::get_import_options(const String &p_path, List<Impo
|
||||
r_options->push_back(ImportOption(PropertyInfo(Variant::INT, "process/size_limit", PROPERTY_HINT_RANGE, "0,4096,1"), 0));
|
||||
r_options->push_back(ImportOption(PropertyInfo(Variant::INT, "detect_3d/compress_to", PROPERTY_HINT_ENUM, "Disabled,VRAM Compressed,Basis Universal"), (p_preset == PRESET_DETECT) ? 1 : 0));
|
||||
|
||||
if (p_path.get_extension() == "svg") {
|
||||
// Do path based customization only if a path was passed.
|
||||
if (p_path.is_empty() || p_path.get_extension() == "svg") {
|
||||
r_options->push_back(ImportOption(PropertyInfo(Variant::FLOAT, "svg/scale", PROPERTY_HINT_RANGE, "0.001,100,0.001"), 1.0));
|
||||
|
||||
// Editor use only, applies to SVG.
|
||||
|
Loading…
Reference in New Issue
Block a user