diff --git a/blackboard/blackboard_plan.cpp b/blackboard/blackboard_plan.cpp index c88e81e..261b60c 100644 --- a/blackboard/blackboard_plan.cpp +++ b/blackboard/blackboard_plan.cpp @@ -81,7 +81,9 @@ void BlackboardPlan::_get_property_list(List *p_list) const { BBVariable var = kv.value; // * Editor - p_list->push_back(PropertyInfo(var.get_type(), var_name, var.get_hint(), var.get_hint_string(), PROPERTY_USAGE_EDITOR)); + if (!is_derived() || !var_name.begins_with("_")) { + p_list->push_back(PropertyInfo(var.get_type(), var_name, var.get_hint(), var.get_hint_string(), PROPERTY_USAGE_EDITOR)); + } // * Storage p_list->push_back(PropertyInfo(Variant::STRING, "var/" + var_name + "/name", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NO_EDITOR | PROPERTY_USAGE_INTERNAL)); diff --git a/blackboard/blackboard_plan.h b/blackboard/blackboard_plan.h index ed6c55e..ecd9376 100644 --- a/blackboard/blackboard_plan.h +++ b/blackboard/blackboard_plan.h @@ -56,7 +56,7 @@ public: void swap_vars(int idx_a, int idx_b); void sync_with_base_plan(); - bool is_derived() { return base.is_valid(); } + bool is_derived() const { return base.is_valid(); } Ref create_blackboard(); void populate_blackboard(const Ref &p_blackboard, bool overwrite);