From fb1fa2a3f74a0b5ff2562829a73c9b1b91a80706 Mon Sep 17 00:00:00 2001 From: kobewi Date: Tue, 8 Feb 2022 16:06:57 +0100 Subject: [PATCH] Reload built-in scripts when picking methods --- editor/property_selector.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/editor/property_selector.cpp b/editor/property_selector.cpp index 406bcbe342c..0862efb4ee5 100644 --- a/editor/property_selector.cpp +++ b/editor/property_selector.cpp @@ -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