mirror of https://github.com/godotengine/godot
Merge pull request #30544 from bojidar-bg/30537-huge-default-values
Fix huge multiline default values being generated
This commit is contained in:
commit
158feb4194
|
|
@ -266,8 +266,8 @@ void DocData::generate(bool p_basic_types) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (default_value_valid) {
|
if (default_value_valid && default_value.get_type() != Variant::OBJECT) {
|
||||||
prop.default_value = default_value.get_construct_string();
|
prop.default_value = default_value.get_construct_string().replace("\n", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool found_type = false;
|
bool found_type = false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue