summaryrefslogtreecommitdiff
path: root/modules/dlscript/api_generator.cpp
diff options
context:
space:
mode:
authorKarroffel <therzog@mail.de>2017-04-05 17:08:19 +0200
committerKarroffel <therzog@mail.de>2017-04-05 17:08:23 +0200
commitfa7e167a926a042f448b0a644271c8f0e4256aed (patch)
tree1def347e941c90e26fcc516e5749e757a39465fd /modules/dlscript/api_generator.cpp
parent454f53c77659721a529c48fd4be6bf80d33c0082 (diff)
[DLScript] fixed virtual method export
Diffstat (limited to 'modules/dlscript/api_generator.cpp')
-rw-r--r--modules/dlscript/api_generator.cpp4
1 files changed, 2 insertions, 2 deletions
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<ClassAPI> 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;
}