Merge pull request #113447 from TokageItLab/opt-nodepath

Optimize NodePath
This commit is contained in:
Thaddeus Crews 2025-12-02 11:51:58 -06:00
commit 51d5a17055
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

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