You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
ClassDB: Exclude method binds starting with '_' from API hash
These methods are not meant to be part of the scripting API. These are not the same as virtual methods starting with '_', e.g.: '_process'.
This commit is contained in:
@@ -389,6 +389,13 @@ uint64_t ClassDB::get_api_hash(APIType p_api) {
|
|||||||
|
|
||||||
while ((k = t->method_map.next(k))) {
|
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);
|
snames.push_back(*k);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user