mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Merge pull request #109433 from KoBeWi/hastension
Add `has_extension()` method to String
This commit is contained in:
@@ -2514,7 +2514,7 @@ void ResourceImporterScene::get_import_options(const String &p_path, List<Import
|
||||
}
|
||||
script_ext_hint += "*." + E;
|
||||
}
|
||||
bool trimming_defaults_on = p_path.get_extension().to_lower() == "fbx";
|
||||
bool trimming_defaults_on = p_path.has_extension("fbx");
|
||||
|
||||
r_options->push_back(ImportOption(PropertyInfo(Variant::BOOL, "nodes/apply_root_scale"), true));
|
||||
r_options->push_back(ImportOption(PropertyInfo(Variant::FLOAT, "nodes/root_scale", PROPERTY_HINT_RANGE, "0.001,1000,0.001"), 1.0));
|
||||
|
||||
Reference in New Issue
Block a user