You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Skip script property in remote object property list
This commit is contained in:
@@ -55,9 +55,14 @@ bool EditorDebuggerRemoteObject::_get(const StringName &p_name, Variant &r_ret)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void EditorDebuggerRemoteObject::_get_property_list(List<PropertyInfo> *p_list) const {
|
void EditorDebuggerRemoteObject::_get_property_list(List<PropertyInfo> *p_list) const {
|
||||||
p_list->clear(); //sorry, no want category
|
p_list->clear(); // Sorry, no want category.
|
||||||
for (const PropertyInfo &E : prop_list) {
|
for (const PropertyInfo &prop : prop_list) {
|
||||||
p_list->push_back(E);
|
if (prop.name == "script") {
|
||||||
|
// Skip the script property, it's always added by the non-virtual method.
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
p_list->push_back(prop);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user