From 847c9bd24832d51b1bbf763d445d2d57806486fe Mon Sep 17 00:00:00 2001 From: rune-scape Date: Fri, 25 Nov 2022 05:21:15 -0500 Subject: [PATCH] GDScript: Avoid using `get_global_class_native_base` --- editor/editor_data.cpp | 10 +++++----- editor/scene_tree_dock.cpp | 10 ++++++---- main/main.cpp | 6 +++++- modules/gdscript/gdscript_analyzer.cpp | 14 +++----------- modules/gdscript/gdscript_parser.cpp | 7 +++++-- 5 files changed, 24 insertions(+), 23 deletions(-) diff --git a/editor/editor_data.cpp b/editor/editor_data.cpp index 48be0c9c00d..f15b874c45d 100644 --- a/editor/editor_data.cpp +++ b/editor/editor_data.cpp @@ -945,11 +945,11 @@ StringName EditorData::script_class_get_base(const String &p_class) const { Variant EditorData::script_class_instance(const String &p_class) { if (ScriptServer::is_global_class(p_class)) { - Variant obj = ClassDB::instantiate(ScriptServer::get_global_class_native_base(p_class)); - if (obj) { - Ref