You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-29 16:16:38 +00:00
Merge pull request #81521 from dsnopek/method-bind-default-argument-hash-fix
Fix method hashes with default arguments
This commit is contained in:
@@ -221,10 +221,11 @@ uint32_t ClassDB::get_api_hash(APIType p_api) {
|
||||
|
||||
hash = hash_murmur3_one_64(mb->get_default_argument_count(), hash);
|
||||
|
||||
for (int i = 0; i < mb->get_default_argument_count(); i++) {
|
||||
//hash should not change, i hope for tis
|
||||
Variant da = mb->get_default_argument(i);
|
||||
hash = hash_murmur3_one_64(da.hash(), hash);
|
||||
for (int i = 0; i < mb->get_argument_count(); i++) {
|
||||
if (mb->has_default_argument(i)) {
|
||||
Variant da = mb->get_default_argument(i);
|
||||
hash = hash_murmur3_one_64(da.hash(), hash);
|
||||
}
|
||||
}
|
||||
|
||||
hash = hash_murmur3_one_64(mb->get_hint_flags(), hash);
|
||||
|
||||
Reference in New Issue
Block a user