doc: Only encode version branch (x.y) in class header

This avoids a big diff on patch version updates.

(cherry picked from commit dacfdd8f33)
This commit is contained in:
Rémi Verschelde
2020-02-14 17:38:20 +01:00
parent 3dfedc0b4c
commit fbaf3c26bf
2 changed files with 2 additions and 2 deletions

View File

@@ -1030,7 +1030,7 @@ Error DocData::save_classes(const String &p_default_path, const Map<String, Stri
String header = "<class name=\"" + c.name + "\"";
if (c.inherits != "")
header += " inherits=\"" + c.inherits + "\"";
header += String(" version=\"") + VERSION_NUMBER + "\"";
header += String(" version=\"") + VERSION_BRANCH + "\"";
header += ">";
_write_string(f, 0, header);