Godot Engine – Multi-platform 2D and 3D game engine
Remove `GDScript::get_native`
HolonProduction8948ab874b62
diff --git a/modules/gdscript/gdscript.h b/modules/gdscript/gdscript.hindex fe26c6ed6bf..7f8fd6a2860 100644--- a/modules/gdscript/gdscript.h+++ b/modules/gdscript/gdscript.h@@ -248,7 +248,6 @@ public:CRASH_COND(!member_indices.has(p_member));return member_indices[p_member].data_type;}- const Ref<GDScriptNativeClass> &get_native() const { return native; }_FORCE_INLINE_ const HashMap<StringName, GDScriptFunction *> &get_member_functions() const { return member_functions; }_FORCE_INLINE_ const HashMap<GDScriptFunction *, LambdaInfo> &get_lambda_info() const { return lambda_info; }diff --git a/modules/gdscript/tests/gdscript_test_runner.cpp b/modules/gdscript/tests/gdscript_test_runner.cppindex e6a22f6f026..7d155f621ec 100644--- a/modules/gdscript/tests/gdscript_test_runner.cpp+++ b/modules/gdscript/tests/gdscript_test_runner.cpp@@ -671,7 +671,7 @@ GDScriptTest::TestResult GDScriptTest::execute_test_code(bool p_is_generating) {}// Create object instance for test.- Object *obj = ClassDB::instantiate(script->get_native()->get_name());+ Object *obj = ClassDB::instantiate(script->get_instance_base_type());Ref<RefCounted> obj_ref;if (obj->is_ref_counted()) {obj_ref = Ref<RefCounted>(Object::cast_to<RefCounted>(obj));