summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2017-08-29 18:11:39 +0200
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2017-08-29 19:40:28 +0200
commitddb1ce08c3cf5f9b978566c8196b9f387d3edf9a (patch)
tree4a627c0230945cd2d6b9c82a07936ada9b14927d
parentc16d00591be623e0b1d6377e6dda7007c0e0d6c4 (diff)
Fixes missing default arguments in MethodInfo
-rw-r--r--core/class_db.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/class_db.cpp b/core/class_db.cpp
index 0d6c72afa8..53bac3e349 100644
--- a/core/class_db.cpp
+++ b/core/class_db.cpp
@@ -539,8 +539,9 @@ void ClassDB::get_method_list(StringName p_class, List<MethodInfo> *p_methods, b
}
minfo.return_val = method->get_return_info();
-
minfo.flags = method->get_hint_flags();
+ minfo.default_arguments = method->get_default_arguments();
+
p_methods->push_back(minfo);
}