Merge pull request #22953 from DualMatrix/properties_gone
Fixed parents export vars not appearing in inspector if parent is class_name.
This commit is contained in:
commit
7a9e4c2602
|
@ -421,9 +421,10 @@ bool GDScript::_update_exports() {
|
|||
base_cache = Ref<GDScript>();
|
||||
}
|
||||
|
||||
if (c->extends_used && String(c->extends_file) != "" && String(c->extends_file) != get_path()) {
|
||||
|
||||
String path = c->extends_file;
|
||||
if (c->extends_used) {
|
||||
String path = "";
|
||||
if (String(c->extends_file) != "" && String(c->extends_file) != get_path()) {
|
||||
path = c->extends_file;
|
||||
if (path.is_rel_path()) {
|
||||
|
||||
String base = get_path();
|
||||
|
@ -434,7 +435,14 @@ bool GDScript::_update_exports() {
|
|||
path = base.get_base_dir().plus_file(path);
|
||||
}
|
||||
}
|
||||
} else if (c->extends_class.size() != 0) {
|
||||
String base = c->extends_class[0];
|
||||
|
||||
if (ScriptServer::is_global_class(base))
|
||||
path = ScriptServer::get_global_class_path(base);
|
||||
}
|
||||
|
||||
if (path != "") {
|
||||
if (path != get_path()) {
|
||||
|
||||
Ref<GDScript> bf = ResourceLoader::load(path);
|
||||
|
@ -448,6 +456,7 @@ bool GDScript::_update_exports() {
|
|||
ERR_PRINT(("Path extending itself in " + path).utf8().get_data());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
members_cache.clear();
|
||||
member_default_values_cache.clear();
|
||||
|
|
Loading…
Reference in New Issue