You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Skip script property in remote object property list
(cherry picked from commit ba3e1d6ced)
This commit is contained in:
committed by
Rémi Verschelde
parent
03bfedc67c
commit
34bdca36de
@@ -142,9 +142,15 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _get_property_list(List<PropertyInfo> *p_list) const {
|
void _get_property_list(List<PropertyInfo> *p_list) const {
|
||||||
p_list->clear(); //sorry, no want category
|
p_list->clear(); // Sorry, no want category.
|
||||||
for (const List<PropertyInfo>::Element *E = prop_list.front(); E; E = E->next()) {
|
for (const List<PropertyInfo>::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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user