Browse Source

Fix huge multiline default values being generated

Bojidar Marinov 6 năm trước cách đây
mục cha
commit
f451a40282
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      editor/doc/doc_data.cpp

+ 2 - 2
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;