From 2af9adca87d4ed748a9a2caf0ace0edffff8a01d Mon Sep 17 00:00:00 2001 From: Hristo Stamenov Date: Sun, 31 Jul 2022 11:07:48 +0300 Subject: [PATCH] Removed faulty function update after get_property_list. The function tried to rearrange properties but that lead to problems with duplication or deleted properties. Implemented the logic that that function did inside the get_property_list both for tool scripts and non-tool scripts. --- visual_script.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/visual_script.cpp b/visual_script.cpp index 4215a97..7324937 100644 --- a/visual_script.cpp +++ b/visual_script.cpp @@ -1206,6 +1206,10 @@ bool VisualScriptInstance::get(const StringName &p_name, Variant &r_ret) const { } void VisualScriptInstance::get_property_list(List *p_properties) const { +#ifdef TOOLS_ENABLED + p_properties->push_back(script->get_class_category()); +#endif // TOOLS_ENABLED + for (const KeyValue &E : script->variables) { if (!E.value._export) { continue;