Fix huge multiline default values being generated

This commit is contained in:
Bojidar Marinov 2019-07-12 21:17:12 +03:00
parent 3bfffcc568
commit f451a40282
No known key found for this signature in database
GPG Key ID: 4D546A8F1E091856

View File

@ -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;