summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2018-04-29 19:50:33 +0200
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2018-04-29 19:50:33 +0200
commit3a86dffc5e6ce180c350ef9a9ddd019b24584d88 (patch)
treed23c7e63cd13475974ab4f5613b5b4265ad2308f /core
parent7034d480327609e104662b3f7588d79f96c3795d (diff)
ClassDB API hash now only includes exposed classes
Diffstat (limited to 'core')
-rw-r--r--core/class_db.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/class_db.cpp b/core/class_db.cpp
index 92aa131e2d..8e7e7b9aa5 100644
--- a/core/class_db.cpp
+++ b/core/class_db.cpp
@@ -355,7 +355,7 @@ uint64_t ClassDB::get_api_hash(APIType p_api) {
ClassInfo *t = classes.getptr(E->get());
ERR_FAIL_COND_V(!t, 0);
- if (t->api != p_api)
+ if (t->api != p_api || !t->exposed)
continue;
hash = hash_djb2_one_64(t->name.hash(), hash);
hash = hash_djb2_one_64(t->inherits.hash(), hash);