Merge pull request #57807 from KoBeWi/ninja_methods
This commit is contained in:
commit
72de251501
1 changed files with 6 additions and 3 deletions
|
@ -214,10 +214,13 @@ void PropertySelector::_update_search() {
|
|||
Variant::construct(type, v, nullptr, 0, ce);
|
||||
v.get_method_list(&methods);
|
||||
} else {
|
||||
Object *obj = ObjectDB::get_instance(script);
|
||||
if (Object::cast_to<Script>(obj)) {
|
||||
Ref<Script> script_ref = Object::cast_to<Script>(ObjectDB::get_instance(script));
|
||||
if (script_ref.is_valid()) {
|
||||
methods.push_back(MethodInfo("*Script Methods"));
|
||||
Object::cast_to<Script>(obj)->get_script_method_list(&methods);
|
||||
if (script_ref->is_built_in()) {
|
||||
script_ref->reload(true);
|
||||
}
|
||||
script_ref->get_script_method_list(&methods);
|
||||
}
|
||||
|
||||
StringName base = base_type;
|
||||
|
|
Loading…
Reference in a new issue