summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorKelly Thomas <kelly.thomas@hotmail.com.au>2018-09-01 03:12:02 +0800
committerRĂ©mi Verschelde <rverschelde@gmail.com>2018-08-31 22:34:22 +0200
commite00baaf6ced167a68ed1f99275f5f7e940e4a960 (patch)
tree2ad2f69e21a91f0ef669451394098b511caa811a /editor
parent3304e6cee0840c85db3d722814a8b321987fe117 (diff)
emit more detailed type information for signal parameters
Diffstat (limited to 'editor')
-rw-r--r--editor/doc/doc_data.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/doc/doc_data.cpp b/editor/doc/doc_data.cpp
index fe1cf3484e..bbe52bdc76 100644
--- a/editor/doc/doc_data.cpp
+++ b/editor/doc/doc_data.cpp
@@ -382,7 +382,11 @@ void DocData::generate(bool p_basic_types) {
PropertyInfo arginfo = EV->get().arguments[i];
ArgumentDoc argument;
argument.name = arginfo.name;
- argument.type = Variant::get_type_name(arginfo.type);
+ if (arginfo.type == Variant::OBJECT && arginfo.class_name != StringName()) {
+ argument.type = arginfo.class_name.operator String();
+ } else {
+ argument.type = Variant::get_type_name(arginfo.type);
+ }
signal.arguments.push_back(argument);
}