Merge pull request #55530 from raulsntos/fix-duplicate-script-property

Skip `script` property in remote object property list
This commit is contained in:
Rémi Verschelde 2021-12-02 08:47:52 +01:00 committed by GitHub
commit 8e090e2b9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

View File

@ -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);
}
}