[Complex Text Layouts] Add compatibility for legacy Font resources.
This commit is contained in:
parent
b9a2787bd1
commit
3c3590522f
4 changed files with 122 additions and 3 deletions
|
|
@ -243,8 +243,11 @@ HashMap<StringName, StringName> ClassDB::resource_base_extensions;
|
|||
HashMap<StringName, StringName> ClassDB::compat_classes;
|
||||
|
||||
bool ClassDB::_is_parent_class(const StringName &p_class, const StringName &p_inherits) {
|
||||
StringName inherits = p_class;
|
||||
if (!classes.has(p_class)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
StringName inherits = p_class;
|
||||
while (inherits.operator String().length()) {
|
||||
if (inherits == p_inherits) {
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue