Optimization NodePath

co-authored-by: Ryan-000 <73148864+Ryan-000@users.noreply.github.com>
This commit is contained in:
Silc Lizard (Tokage) Renew 2025-12-02 21:45:35 +09:00
parent f5918a9d35
commit b97aa0ba3c

View file

@ -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;
}