summaryrefslogtreecommitdiff
path: root/tools/doc/doc_data.cpp
diff options
context:
space:
mode:
authorsantiagopf <punto@Ariels-Mac-mini.local>2015-12-14 10:58:26 -0300
committersantiagopf <punto@Ariels-Mac-mini.local>2015-12-14 10:58:26 -0300
commita9795d582665598decd4e73e1d879c83ce28a44b (patch)
tree777a3da33fed3d6906704680e01bd87f97eba113 /tools/doc/doc_data.cpp
parentc8077de71475c174aa14fd045a2cddfc28de2468 (diff)
parentbfaa179e7088d9d6f4cf289e1915eec12c6b3b2a (diff)
Merge branch 'master' of https://github.com/godotengine/godot
Diffstat (limited to 'tools/doc/doc_data.cpp')
-rw-r--r--tools/doc/doc_data.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/doc/doc_data.cpp b/tools/doc/doc_data.cpp
index c1d3e5e314..3161e380b9 100644
--- a/tools/doc/doc_data.cpp
+++ b/tools/doc/doc_data.cpp
@@ -187,14 +187,13 @@ void DocData::generate(bool p_basic_types) {
arginfo=E->get().return_val;
- if (arginfo.type==Variant::NIL)
- continue;
#ifdef DEBUG_METHODS_ENABLED
if (m && m->get_return_type()!=StringName())
method.return_type=m->get_return_type();
- else
+ else if (arginfo.type!=Variant::NIL) {
#endif
method.return_type=(arginfo.hint==PROPERTY_HINT_RESOURCE_TYPE)?arginfo.hint_string:Variant::get_type_name(arginfo.type);
+ }
} else {