mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
CSharpScript should not own method infos of the base class
This commit is contained in:
parent
7ebc866418
commit
c313312ff5
2 changed files with 4 additions and 13 deletions
|
@ -1596,14 +1596,7 @@ void CSharpInstance::get_method_list(List<MethodInfo> *p_list) const {
|
|||
return;
|
||||
}
|
||||
|
||||
const CSharpScript *top = script.ptr();
|
||||
while (top != nullptr) {
|
||||
for (const CSharpScript::CSharpMethodInfo &E : top->methods) {
|
||||
p_list->push_back(E.method_info);
|
||||
}
|
||||
|
||||
top = top->base_script.ptr();
|
||||
}
|
||||
script->get_script_method_list(p_list);
|
||||
}
|
||||
|
||||
bool CSharpInstance::has_method(const StringName &p_method) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue