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;
|
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) {
|
if (data->absolute != p_path.data->absolute) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user