Allow class_name scripts to have nested inheritance

This commit is contained in:
George Marques
2019-03-09 00:47:27 -03:00
parent a38bf5287a
commit 25f9aee005
9 changed files with 17 additions and 8 deletions

View File

@ -2190,7 +2190,7 @@ void EditorPropertyResource::_menu_option(int p_which) {
Object *obj = NULL;
if (ScriptServer::is_global_class(intype)) {
obj = ClassDB::instance(ScriptServer::get_global_class_base(intype));
obj = ClassDB::instance(ScriptServer::get_global_class_native_base(intype));
if (obj) {
Ref<Script> script = ResourceLoader::load(ScriptServer::get_global_class_path(intype));
if (script.is_valid()) {