mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 13:49:54 +00:00
Optimization NodePath
co-authored-by: Ryan-000 <73148864+Ryan-000@users.noreply.github.com>
This commit is contained in:
parent
f5918a9d35
commit
b97aa0ba3c
1 changed files with 6 additions and 0 deletions
|
|
@ -117,6 +117,12 @@ bool NodePath::operator==(const NodePath &p_path) const {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (data->hash_cache_valid && p_path.data->hash_cache_valid) {
|
||||
if (data->hash_cache != p_path.data->hash_cache) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (data->absolute != p_path.data->absolute) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue