mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Fix PackedData::has_path() using wrong path format.
This commit is contained in:
parent
cb411fa960
commit
93a21c3efc
@ -205,7 +205,7 @@ Ref<FileAccess> PackedData::try_open_path(const String &p_path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool PackedData::has_path(const String &p_path) {
|
bool PackedData::has_path(const String &p_path) {
|
||||||
return files.has(PathMD5(p_path.simplify_path().md5_buffer()));
|
return files.has(PathMD5(p_path.simplify_path().trim_prefix("res://").md5_buffer()));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PackedData::has_directory(const String &p_path) {
|
bool PackedData::has_directory(const String &p_path) {
|
||||||
|
Loading…
Reference in New Issue
Block a user