summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2016-08-20 15:02:15 +0200
committerGitHub <noreply@github.com>2016-08-20 15:02:15 +0200
commit61cb8fd76c78ce2d27b5738e84c773ae4ec284e1 (patch)
tree10df4bb763993130a45343f8653b3db3ba654632 /tools
parent6efbe9342a35584ff410f3c016ad1c219729d9c9 (diff)
parent9e6b53c8dd0d15bf9f66de4cda08571f43c07d79 (diff)
Merge pull request #6197 from neikeq/pr-docs-reg-5919
DocData: Fix duplicated parenthesis for default values
Diffstat (limited to 'tools')
-rw-r--r--tools/doc/doc_data.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/tools/doc/doc_data.cpp b/tools/doc/doc_data.cpp
index 398267937b..ce69aca0c6 100644
--- a/tools/doc/doc_data.cpp
+++ b/tools/doc/doc_data.cpp
@@ -276,14 +276,9 @@ void DocData::generate(bool p_basic_types) {
default_arg_text=Variant::get_type_name(default_arg.get_type())+"("+default_arg_text+")";
break;
- case Variant::VECTOR2: // 5
- case Variant::RECT2:
- case Variant::VECTOR3:
- case Variant::PLANE:
- case Variant::QUAT:
case Variant::_AABB: //sorry naming convention fail :( not like it's used often // 10
- case Variant::MATRIX3:
case Variant::COLOR:
+ case Variant::PLANE:
case Variant::RAW_ARRAY:
case Variant::INT_ARRAY:
case Variant::REAL_ARRAY:
@@ -293,6 +288,13 @@ void DocData::generate(bool p_basic_types) {
case Variant::COLOR_ARRAY:
default_arg_text=Variant::get_type_name(default_arg.get_type())+"("+default_arg_text+")";
break;
+ case Variant::VECTOR2: // 5
+ case Variant::RECT2:
+ case Variant::VECTOR3:
+ case Variant::QUAT:
+ case Variant::MATRIX3:
+ default_arg_text=Variant::get_type_name(default_arg.get_type())+default_arg_text;
+ break;
case Variant::OBJECT:
case Variant::INPUT_EVENT:
case Variant::DICTIONARY: // 20