From 3cf90f938774a7feb42ece1941460086e848d0dc Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Wed, 15 May 2024 13:13:27 +0200 Subject: [PATCH] BlackboardPlan: Don't show mapping in root plans --- blackboard/blackboard_plan.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blackboard/blackboard_plan.h b/blackboard/blackboard_plan.h index 21ccbbf..222af2f 100644 --- a/blackboard/blackboard_plan.h +++ b/blackboard/blackboard_plan.h @@ -62,7 +62,7 @@ public: void set_parent_scope_plan_provider(const Callable &p_parent_scope_plan_provider); Callable get_parent_scope_plan_provider() const { return parent_scope_plan_provider; } - bool is_mapping_enabled() const { return parent_scope_plan_provider.is_valid(); } + bool is_mapping_enabled() const { return parent_scope_plan_provider.is_valid() && (parent_scope_plan_provider.call() != Ref()); } bool has_mapping(const StringName &p_name) const; void set_prefetch_nodepath_vars(bool p_enable);