diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-12-02 08:47:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 08:47:52 +0100 |
commit | 8e090e2b9c9d363ccca8ecbc259e03350d4b6f21 (patch) | |
tree | c10db92d7f53a8b747ce1ba58d58b5ddef5af6f0 /editor | |
parent | 16778151c066531a26ed67d84b16297dffd49409 (diff) | |
parent | b642c32dfb77878a709c1b378f991a1a02ebb8f4 (diff) |
Merge pull request #55530 from raulsntos/fix-duplicate-script-property
Skip `script` property in remote object property list
Diffstat (limited to 'editor')
-rw-r--r-- | editor/debugger/editor_debugger_inspector.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/editor/debugger/editor_debugger_inspector.cpp b/editor/debugger/editor_debugger_inspector.cpp index e53f66e72e..9346b8f1af 100644 --- a/editor/debugger/editor_debugger_inspector.cpp +++ b/editor/debugger/editor_debugger_inspector.cpp @@ -55,9 +55,14 @@ bool EditorDebuggerRemoteObject::_get(const StringName &p_name, Variant &r_ret) } void EditorDebuggerRemoteObject::_get_property_list(List<PropertyInfo> *p_list) const { - p_list->clear(); //sorry, no want category - for (const PropertyInfo &E : prop_list) { - p_list->push_back(E); + p_list->clear(); // Sorry, no want category. + for (const PropertyInfo &prop : prop_list) { + if (prop.name == "script") { + // Skip the script property, it's always added by the non-virtual method. + continue; + } + + p_list->push_back(prop); } } |