doc: Only encode version branch (x.y) in class header
This avoids a big diff on patch version updates.
This commit is contained in:
parent
11ee97cbb2
commit
dacfdd8f33
|
@ -1032,7 +1032,7 @@ Error DocData::save_classes(const String &p_default_path, const Map<String, Stri
|
||||||
String header = "<class name=\"" + c.name + "\"";
|
String header = "<class name=\"" + c.name + "\"";
|
||||||
if (c.inherits != "")
|
if (c.inherits != "")
|
||||||
header += " inherits=\"" + c.inherits + "\"";
|
header += " inherits=\"" + c.inherits + "\"";
|
||||||
header += String(" version=\"") + VERSION_NUMBER + "\"";
|
header += String(" version=\"") + VERSION_BRANCH + "\"";
|
||||||
header += ">";
|
header += ">";
|
||||||
_write_string(f, 0, header);
|
_write_string(f, 0, header);
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,7 @@ void DocDump::dump(const String &p_file) {
|
||||||
FileAccess *f = FileAccess::open(p_file, FileAccess::WRITE);
|
FileAccess *f = FileAccess::open(p_file, FileAccess::WRITE);
|
||||||
|
|
||||||
_write_string(f, 0, "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
|
_write_string(f, 0, "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
|
||||||
_write_string(f, 0, String("<doc version=\"") + VERSION_NUMBER + "\" name=\"Engine Types\">");
|
_write_string(f, 0, String("<doc version=\"") + VERSION_BRANCH + "\" name=\"Engine Types\">");
|
||||||
|
|
||||||
while (class_list.size()) {
|
while (class_list.size()) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue