summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaul Santos <raulsntos@gmail.com>2021-12-01 21:21:58 +0100
committerRaul Santos <raulsntos@gmail.com>2021-12-01 21:21:58 +0100
commitb642c32dfb77878a709c1b378f991a1a02ebb8f4 (patch)
tree92c828974bf467946ab64dc25a58f6be3145f52c
parentb9d877e55fc469e7441cb00856359946b91d00ff (diff)
Skip script property in remote object property list
-rw-r--r--editor/debugger/editor_debugger_inspector.cpp11
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);
}
}