Include more attributes in the global class names cache
This commit is contained in:
parent
aca5cfc913
commit
318af42020
16 changed files with 174 additions and 133 deletions
|
|
@ -297,10 +297,10 @@ void test(TestType p_type) {
|
|||
TypedArray<Dictionary> script_classes = ProjectSettings::get_singleton()->get_global_class_list();
|
||||
for (int i = 0; i < script_classes.size(); i++) {
|
||||
Dictionary c = script_classes[i];
|
||||
if (!c.has("class") || !c.has("language") || !c.has("path") || !c.has("base")) {
|
||||
if (!c.has("class") || !c.has("language") || !c.has("path") || !c.has("base") || !c.has("is_abstract") || !c.has("is_tool")) {
|
||||
continue;
|
||||
}
|
||||
ScriptServer::add_global_class(c["class"], c["base"], c["language"], c["path"]);
|
||||
ScriptServer::add_global_class(c["class"], c["base"], c["language"], c["path"], c["is_abstract"], c["is_tool"]);
|
||||
}
|
||||
|
||||
Vector<uint8_t> buf;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue