From 8bcd345782e0742dd63e8e5dac1f13704c6aac53 Mon Sep 17 00:00:00 2001 From: George Marques Date: Mon, 26 Oct 2020 10:06:44 -0300 Subject: [PATCH] GDScript: Fix native class not set with inheritance --- modules/gdscript/gdscript_compiler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gdscript/gdscript_compiler.cpp b/modules/gdscript/gdscript_compiler.cpp index bad450c9f95..a64a05fcba7 100644 --- a/modules/gdscript/gdscript_compiler.cpp +++ b/modules/gdscript/gdscript_compiler.cpp @@ -1963,6 +1963,8 @@ Error GDScriptCompiler::_parse_class_level(GDScript *p_script, const GDScriptPar } p_script->member_indices = base->member_indices; + native = base->native; + p_script->native = native; } break; default: { _set_error("Parser bug: invalid inheritance.", p_class);