Fix debugger not opening built-in scripts

This commit is contained in:
kobewi 2022-03-02 00:30:31 +01:00
parent 62765fb7ca
commit 98dd04c38c
2 changed files with 15 additions and 3 deletions

View file

@ -796,7 +796,7 @@ void GDScript::_set_subclass_path(Ref<GDScript> &p_sc, const String &p_path) {
String GDScript::_get_debug_path() const {
if (is_built_in() && !get_name().is_empty()) {
return get_name() + " (" + get_path().get_slice("::", 0) + ")";
return get_name() + " (" + get_path() + ")";
} else {
return get_path();
}