Merge pull request #3343 from akien-mga/pr-type-check-autoload
Fix wrong type check for autoload
This commit is contained in:
commit
0d180b8719
1 changed files with 1 additions and 1 deletions
|
@ -1374,7 +1374,7 @@ bool Main::start() {
|
||||||
} else if (res->is_type("Script")) {
|
} else if (res->is_type("Script")) {
|
||||||
Ref<Script> s = res;
|
Ref<Script> s = res;
|
||||||
StringName ibt = s->get_instance_base_type();
|
StringName ibt = s->get_instance_base_type();
|
||||||
bool valid_type = !ObjectTypeDB::is_type(ibt,"Node");
|
bool valid_type = ObjectTypeDB::is_type(ibt,"Node");
|
||||||
ERR_EXPLAIN("Script does not inherit a Node: "+path);
|
ERR_EXPLAIN("Script does not inherit a Node: "+path);
|
||||||
ERR_CONTINUE( !valid_type );
|
ERR_CONTINUE( !valid_type );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue