diff options
author | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2019-07-12 21:17:12 +0300 |
---|---|---|
committer | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2019-07-12 21:17:12 +0300 |
commit | f451a4028217c13506f5f34ce78cd2d3f73f2f9f (patch) | |
tree | d571c9e5e678397070a197ee0842d21dcaa021d2 | |
parent | 3bfffcc568d87342e867f95c35a4a19e09072189 (diff) |
Fix huge multiline default values being generated
-rw-r--r-- | editor/doc/doc_data.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/doc/doc_data.cpp b/editor/doc/doc_data.cpp index 6ee07d3661..4b4baba67b 100644 --- a/editor/doc/doc_data.cpp +++ b/editor/doc/doc_data.cpp @@ -266,8 +266,8 @@ void DocData::generate(bool p_basic_types) { } } - if (default_value_valid) { - prop.default_value = default_value.get_construct_string(); + if (default_value_valid && default_value.get_type() != Variant::OBJECT) { + prop.default_value = default_value.get_construct_string().replace("\n", ""); } bool found_type = false; |