diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2020-11-27 22:55:24 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2020-12-03 10:34:03 +0200 |
commit | 3c3590522f6f51db353383f369e4a70932022206 (patch) | |
tree | 7a6267a290c405fa13d75891a045d09b1b7ea7eb /core/object | |
parent | b9a2787bd164602e866ecac1527020e0e1c34da8 (diff) |
[Complex Text Layouts] Add compatibility for legacy Font resources.
Diffstat (limited to 'core/object')
-rw-r--r-- | core/object/class_db.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/object/class_db.cpp b/core/object/class_db.cpp index dc28fa10de..f5171f60ec 100644 --- a/core/object/class_db.cpp +++ b/core/object/class_db.cpp @@ -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; |