summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-07-15 08:16:43 +0200
committerGitHub <noreply@github.com>2019-07-15 08:16:43 +0200
commit158feb41940da9d119e7594bc43a9f5172330cc6 (patch)
tree6dff215fa93e065f5cec33c8a483902f880a5469 /editor
parent75f2575f28b2f7f40fdf213eeaebc80871218f35 (diff)
parentf451a4028217c13506f5f34ce78cd2d3f73f2f9f (diff)
Merge pull request #30544 from bojidar-bg/30537-huge-default-values
Fix huge multiline default values being generated
Diffstat (limited to 'editor')
-rw-r--r--editor/doc/doc_data.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/doc/doc_data.cpp b/editor/doc/doc_data.cpp
index a8ba54d4f8..6f09e73fab 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;