From fa7e167a926a042f448b0a644271c8f0e4256aed Mon Sep 17 00:00:00 2001 From: Karroffel Date: Wed, 5 Apr 2017 17:08:19 +0200 Subject: [DLScript] fixed virtual method export --- modules/dlscript/api_generator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/dlscript/api_generator.cpp') diff --git a/modules/dlscript/api_generator.cpp b/modules/dlscript/api_generator.cpp index c5c5cb46e6..d8cdb39df5 100644 --- a/modules/dlscript/api_generator.cpp +++ b/modules/dlscript/api_generator.cpp @@ -231,12 +231,12 @@ List generate_c_api_classes() { // Method flags if (method_bind && method_bind->get_hint_flags()) { - const uint32_t flags = method_bind->get_hint_flags(); + const uint32_t flags = method_info.flags; method_api.is_editor = flags & METHOD_FLAG_EDITOR; method_api.is_noscript = flags & METHOD_FLAG_NOSCRIPT; method_api.is_const = flags & METHOD_FLAG_CONST; method_api.is_reverse = flags & METHOD_FLAG_REVERSE; - method_api.is_virtual = flags & METHOD_FLAG_VIRTUAL; + method_api.is_virtual = flags & METHOD_FLAG_VIRTUAL || method_info.name[0] == '_'; method_api.is_from_script = flags & METHOD_FLAG_FROM_SCRIPT; } -- cgit v1.2.3