Merge pull request #34875 from neikeq/api-hash-no-underscore-methodbinds

ClassDB: Exclude method binds starting with '_' from API hash
This commit is contained in:
Rémi Verschelde 2020-01-08 08:32:25 +01:00 committed by GitHub
commit 14b24b6a71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -389,6 +389,13 @@ uint64_t ClassDB::get_api_hash(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);
}