From ba3e1d6cede6e182c9552748796d39c4b7f637df Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Thu, 2 Dec 2021 01:33:13 +0100 Subject: [PATCH] Skip script property in remote object property list --- editor/script_editor_debugger.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp index 55fbb33aa0b..3965ffff117 100644 --- a/editor/script_editor_debugger.cpp +++ b/editor/script_editor_debugger.cpp @@ -142,9 +142,15 @@ protected: } void _get_property_list(List *p_list) const { - p_list->clear(); //sorry, no want category + p_list->clear(); // Sorry, no want category. for (const List::Element *E = prop_list.front(); E; E = E->next()) { - p_list->push_back(E->get()); + const PropertyInfo &prop = E->get(); + if (prop.name == "script") { + // Skip the script property, it's always added by the non-virtual method. + continue; + } + + p_list->push_back(prop); } }