You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-31 18:41:20 +00:00
Optimization NodePath
co-authored-by: Ryan-000 <73148864+Ryan-000@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user