mirror of
https://github.com/godotengine/godot.git
synced 2025-04-13 01:00:35 +08:00
Prevent crash when creating custom file tooltip
This commit is contained in:
parent
fd33c7b32f
commit
ef4c214703
@ -2503,6 +2503,7 @@ Control *FileSystemDock::create_tooltip_for_path(const String &p_path) const {
|
||||
// No tooltip for directory.
|
||||
return nullptr;
|
||||
}
|
||||
ERR_FAIL_COND_V(!FileAccess::exists(p_path), nullptr);
|
||||
|
||||
const String type = ResourceLoader::get_resource_type(p_path);
|
||||
Control *tooltip = EditorResourceTooltipPlugin::make_default_tooltip(p_path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user