You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Add templated version of ObjectDB::get_instance()
This commit is contained in:
@@ -180,7 +180,7 @@ void PropertySelector::_update_search() {
|
||||
Variant::construct(type, v, nullptr, 0, ce);
|
||||
v.get_method_list(&methods);
|
||||
} else {
|
||||
Ref<Script> script_ref = Object::cast_to<Script>(ObjectDB::get_instance(script));
|
||||
Ref<Script> script_ref = ObjectDB::get_ref<Script>(script);
|
||||
if (script_ref.is_valid()) {
|
||||
if (script_ref->is_built_in()) {
|
||||
script_ref->reload(true);
|
||||
|
||||
Reference in New Issue
Block a user