summaryrefslogtreecommitdiffstats
path: root/modules/mono/class_db_api_json.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-01-19 22:24:23 +0100
committerGitHub <noreply@github.com>2020-01-19 22:24:23 +0100
commit8cc9bb2539f248b53dc3de166dbdaf3c87f7151f (patch)
tree88a888da5ddfac0a156d1696138a231a368f9084 /modules/mono/class_db_api_json.cpp
parent5358254b6ca752b88138a2b523767093f572ca4c (diff)
parenta6105c8ea0bdae9d56d1943409d89cc71288306a (diff)
downloadredot-engine-8cc9bb2539f248b53dc3de166dbdaf3c87f7151f.tar.gz
Merge pull request #35326 from neikeq/issue-30496
Fix ClassDB API portability with some android and editor classes
Diffstat (limited to 'modules/mono/class_db_api_json.cpp')
-rw-r--r--modules/mono/class_db_api_json.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/mono/class_db_api_json.cpp b/modules/mono/class_db_api_json.cpp
index c1d6f4dccf..b04e53bd81 100644
--- a/modules/mono/class_db_api_json.cpp
+++ b/modules/mono/class_db_api_json.cpp
@@ -71,6 +71,13 @@ void class_db_api_to_json(const String &p_output_file, ClassDB::APIType p_api) {
while ((k = t->method_map.next(k))) {
+ String name = k->operator String();
+
+ ERR_CONTINUE(name.empty());
+
+ if (name[0] == '_')
+ continue; // Ignore non-virtual methods that start with an underscore
+
snames.push_back(*k);
}