From b97aa0ba3c1ad1a458b703ac2c256e4af37eadd8 Mon Sep 17 00:00:00 2001 From: "Silc Lizard (Tokage) Renew" <61938263+TokageItLab@users.noreply.github.com> Date: Tue, 2 Dec 2025 21:45:35 +0900 Subject: [PATCH] Optimization NodePath co-authored-by: Ryan-000 <73148864+Ryan-000@users.noreply.github.com> --- core/string/node_path.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/string/node_path.cpp b/core/string/node_path.cpp index 44ba38236a0..0bd062874e9 100644 --- a/core/string/node_path.cpp +++ b/core/string/node_path.cpp @@ -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; }