Allow class_name scripts to have nested inheritance
This commit is contained in:
@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user